Skip to content

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