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

Handle form post response mode #339

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

geoff-va
Copy link

@geoff-va geoff-va commented Aug 1, 2019

Implements #335

  • Handles the response_mode="form_post" case.
  • Does not handle the fragment or query response modes.
  • Honors the form_post response mode on success or errors.
  • Test cases for success and error cases

I implemented this in AuthorizeView.post as well. Hopefully I interpreted that correctly! Thanks!

geoff-va added 9 commits July 27, 2019 14:20
- https://openid.net/specs/oauth-v2-form-post-response-mode-1_0.html
- Currently only implemented in GET
- Add form_post.html for auto submitting the params
- Add response_mode handling to AuthorizeError cases so it returns
  expected response method
- Since parse_qs returns each value as a list, select that item so
  context dict is always key: value instead of key: [value]
- The response should contain either query params or a fragment.
- Choose the one that isn't empty and create the POST params dict from
  that
- Update test_settings to include the form_post template
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.

1 participant