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 #336

Closed

Conversation

geoff-va
Copy link

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 7 commits July 18, 2019 16:24
- 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
@geoff-va
Copy link
Author

Hmm. Any insight into what may have failed there? All I see is:

An error occurred while generating the build script.

@geoff-va
Copy link
Author

geoff-va commented Jul 27, 2019

Ahh... didn't notice the from and to develop ... sorry about that. Will fix and try again.

@geoff-va
Copy link
Author

This should have been done from/to the develop branch. Will fix and open new PR.

@geoff-va geoff-va closed this Jul 27, 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.

1 participant