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

accessing session user in validate_silent_login #868

Open
dopry opened this issue Nov 15, 2023 · 0 comments
Open

accessing session user in validate_silent_login #868

dopry opened this issue Nov 15, 2023 · 0 comments

Comments

@dopry
Copy link

dopry commented Nov 15, 2023

I'm working on implementing silent login on Django. The documentation says...
per https://oauthlib.readthedocs.io/en/latest/oauth2/oidc/validator.html#oauthlib.openid.RequestValidator.validate_silent_login
,

Ensure client supplied user id hint matches session user.
If the sub claim or id_token_hint is supplied then the session user must match the given ID.

Normally in Django the session user is looked up by middleware and accessed via request.user. When the OAuthLib.common.Request is created the user is not preserved. Is there a recommended way to add the session user to the OAuthLib.common.Request?

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

No branches or pull requests

1 participant