Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validations to exchange action in sessions controller #52

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

emilykim13
Copy link
Collaborator

This PR...

Adds validations to the #exchange action in sessions_controller.rb. It is validating the presence of resource: and subject_token_type:.

Follow these steps to test this PR:

Run bundle exec rspec spec/requests/oauth/sessions_controller_spec.rb

@emilykim13 emilykim13 requested a review from dickdavis July 3, 2024 03:23
# it 'creates an OAuth session and serializes the token data' do
# call_endpoint
# expect(response).to have_http_status(:ok)
### need to create expected endpoint tests
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dickdavis I may add another test here to test endpoint response or include that down the road in another PR that tests the type of resource or type of subject_token_type

@emilykim13
Copy link
Collaborator Author

image Sorry for the little commits, I was trying to figure out what my github wasn't properly linking the commits. It should be properly linked now to the right email. It was set to some strange email before 😅 @dickdavis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant