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

stop render consent screen when user is not logged-in #183

Merged
merged 2 commits into from
Jan 18, 2023

Conversation

nov
Copy link
Contributor

@nov nov commented Jan 17, 2023

current doorkeeper-openid_connect implementation always renders consent screen when prompt=consent is requested.
however, user can be non-authenticated status when requesting.
in that case, application tend to redirect to login page, and it conflicts with rendering consent screen, and results in AbstractController::DoubleRenderError error.

this pull request stop rendering consent screen when user is not authenticated, and will render consent screen after the user is authenticated.

@nov nov force-pushed the fix/double_render_on_prompt_consent branch from 35c688a to 46653c5 Compare January 17, 2023 04:09
@nov nov force-pushed the fix/double_render_on_prompt_consent branch from 46653c5 to 8228ca7 Compare January 17, 2023 04:17
Copy link
Member

@nbulaj nbulaj left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Can we add a changelog entry for this one? 🙏

@nov
Copy link
Contributor Author

nov commented Jan 18, 2023

ok, added changelog.

@nbulaj nbulaj merged commit 67f6313 into doorkeeper-gem:master Jan 18, 2023
@nbulaj
Copy link
Member

nbulaj commented Jan 18, 2023

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.

2 participants