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 strong parameters within pre-authorization #1266

Conversation

stokarenko
Copy link
Contributor

@stokarenko stokarenko commented Jun 5, 2019

Summary

It uses strong parameters within Doorkeeper::OAuth::PreAuthorization, in order to gracefully ignore non-scalar values passed as scope parameter for instance, instead of raising the things like:

NoMethodError: undefined method `split' for #ActionController::Parameters:0x...

spec/lib/oauth/pre_authorization_spec.rb Outdated Show resolved Hide resolved
spec/lib/oauth/pre_authorization_spec.rb Outdated Show resolved Hide resolved
@stokarenko stokarenko changed the title Use strong parameters for pre-authorization Use strong parameters within pre-authorization Jun 5, 2019
@stokarenko stokarenko force-pushed the use-strong-parameters-for-pre-authorization branch 2 times, most recently from a8ac77b to edd8fe9 Compare June 5, 2019 16:51
@stokarenko stokarenko force-pushed the use-strong-parameters-for-pre-authorization branch from edd8fe9 to d4a62c3 Compare June 6, 2019 14:17
@stokarenko stokarenko force-pushed the use-strong-parameters-for-pre-authorization branch from d4a62c3 to d78c0b8 Compare June 6, 2019 14:20
@nbulaj nbulaj self-requested a review June 7, 2019 10:06
Copy link
Member

@nbulaj nbulaj left a comment

Choose a reason for hiding this comment

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

Now LGTM :)

@nbulaj nbulaj merged commit 03b1437 into doorkeeper-gem:master Jun 7, 2019
This pull request was closed.
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.

3 participants