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

fix: OIDC "login" prompt should be "login" even if user authenticated #637

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

frankie567
Copy link
Contributor

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Other, please describe:

  • You consent that the copyright of your pull request source code belongs to Authlib's author.

OpenID Connect specification states the following about the prompt=login parameter:

The Authorization Server SHOULD prompt the End-User for reauthentication. If it cannot reauthenticate the End-User, it MUST return an error, typically login_required.

Ref: https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest

In the current implementation, if end_user is present, the login prompt is ignored and set to None. We should instead keep this prompt so the end-developer can force a re-authentication of the user.

Copy link

@codespearhead codespearhead left a comment

Choose a reason for hiding this comment

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

Good catch!

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.

None yet

2 participants