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

Use 'token_owner' instead of 'oauth_token' on Swagger UI endpoint aut… #510

Merged

Conversation

texpert
Copy link
Contributor

@texpert texpert commented Oct 3, 2016

…horization.

Typically the authorization middleware is making available the 'resource_owner' in the endpoint context. so better to use it instead of 'oauth_token' - it will save a request to the DB.

@LeFnord
Copy link
Member

LeFnord commented Oct 3, 2016

thanks @texpert

@LeFnord LeFnord merged commit e0037fc into ruby-grape:master Oct 3, 2016
@texpert
Copy link
Contributor Author

texpert commented Oct 3, 2016

My pleasure, @LeFnord ! :)

@texpert texpert deleted the change_oauth_token_to_resource_owner branch November 1, 2016 10:56
LeFnord pushed a commit to LeFnord/grape-swagger that referenced this pull request Feb 9, 2019
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

2 participants