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

Make login after logout require fresh auth #5

Closed
89oinotna opened this issue Dec 7, 2024 · 1 comment
Closed

Make login after logout require fresh auth #5

89oinotna opened this issue Dec 7, 2024 · 1 comment

Comments

@89oinotna
Copy link

If i try to login after doing the logout im not prompted again to the oauth provider login, how can i force a fresh login?

@kajarenc
Copy link
Owner

Hello @89oinotna!
thanks for opening this issue!

in general, this is specified by the prompt parameter of client kwargs in secrets.toml provider section, and by default, we use the select_account option.
However, you can always override that parameter for the concrete provider if it respects the prompt parameter.

E.g. docs from Google and Microsoft, with corresponding values:
https://developers.google.com/identity/openid-connect/openid-connect#authenticationuriparameters
https://learn.microsoft.com/en-us/entra/identity-platform/v2-protocols-oidc#send-the-sign-in-request

E.g. for Microsoft to force user to login on each auth request you can specify this in your secrets:

[auth.microsoft]
client_id="your_client_id_here"
client_secret="your_client_secret_here"
server_metadata_url="https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration"
client_kwargs = { 'prompt' = 'login' }

Hope this will help!
Please let me know what identity provider you use

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

2 participants