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

Improve prompt parameter validation #466

Merged
merged 2 commits into from Apr 3, 2017
Merged

Conversation

skion
Copy link
Member

@skion skion commented Feb 23, 2017

  • Strip leading and trailing spaces.
  • Disallow prompt=none with other values as per spec.
  • Pass to credentials as a set.

I'm wondering if it would be better to also not enforce id_token_hint when prompt=none (the specification allows both), as for a developer it would be harder to eliminate this check in the default server than it is to add the constraint externally.

@thedrow
Copy link
Collaborator

thedrow commented Mar 31, 2017

Can you please rebase? Do the existing tests cover your changes?

- Strip leading and trailng spaces.
- Disallow prompt=none with other values as per spec.
- Pass to credentials as a set.
@skion
Copy link
Member Author

skion commented Apr 2, 2017

@thedrow Added test and rebased on top of #455.

@thedrow thedrow merged commit ae0a71a into oauthlib:master Apr 3, 2017
@thedrow
Copy link
Collaborator

thedrow commented Apr 3, 2017

Thanks!

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