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 required option for oauth2 middleware #511

Closed
wants to merge 1 commit into from

Conversation

bcm
Copy link
Contributor

@bcm bcm commented Nov 21, 2013

this addresses situations where authentication is optional. sometimes you don't want to deny unauthenticated access but allow authentication when a token is actually provided. in this case the token must still be valid if it's provided, but if it's not there then the endpoint will still attempt to handle the request instead of returning a 401.

@dblock
Copy link
Member

dblock commented Nov 21, 2013

LGTM. Update the CHANGELOG, please. Thx.

bcm added a commit to bcm/grape that referenced this pull request Nov 21, 2013
@bcm
Copy link
Contributor Author

bcm commented Nov 21, 2013

grr, I always forget that, thanks. updated.

@dblock
Copy link
Member

dblock commented Nov 21, 2013

Put back the "your contribution here" text

Squash your commits

Thanks!

this addresses situations where authentication is optional. sometimes
you don't want to deny unauthenticated access but allow authentication
when a token is actually provided. in this case the token must still
be valid if it's provided, but if it's not there then the endpoint
will still attempt to handle the request instead of returning a 401.
@bcm
Copy link
Contributor Author

bcm commented Nov 21, 2013

updated. first time doing that, hope it's right.

@dblock
Copy link
Member

dblock commented Nov 21, 2013

You had to go one commit further, no big deal. I merged this via 9987090. Thanks!

@dblock dblock closed this Nov 21, 2013
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.

2 participants