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

Added support for different response modes #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ravidshachar
Copy link

Added support for additional response modes such as form_post

Copy link
Member

@mtrojanowski mtrojanowski left a comment

Choose a reason for hiding this comment

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

Hey @ravidshachar, thanks for the contribution. Really nice change.

I left one comment with a proposition for a slight change in the proposed feature.

@@ -114,6 +114,7 @@ def start_code_flow():
scopes, request.args.get("forceConsent", False),
request.args.get("allowConsentOptionDeselection", False),
request.args.get("responseType", "code"),
_config.get("response_mode", "query"),
Copy link
Member

Choose a reason for hiding this comment

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

I think it's better to leave the decision about the response mode to the client. You changed the backend so that it will work with both modes, which is good. Now the client could decide which mode to use:

request.args.get("response_mode", "query"),

The response_mode could be then removed from the settings.

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.

2 participants