#18507·authentik

Oauth provider ask for login twice with prompt=login

Author: HNicolasCreated Dec 1, 2025Updated Sep 28, 2026
Labelsbugbug/confirmed

Describe the bug

I use authentik version 2025.10. When using adding the query parameter prompt=login to the authorization endpoint, an unauthenticated user is asked to complete the login twice before being redirected to the redirect_uri.

The user is first redirected to an url of the form: /application/o/authorize/?client_id=&scope=openid%20email&response_type=code&redirect_uri=<redirect_uri>&state=&prompt=login&code_challenge=<code_challenge>&code_challenge_method=S256

Authentik redirect the user to the authentication flow: /flows/-/default/authentication/?next=/application/o/authorize/%3Fclient_id%3D<client_id>%26scope%3Dopenid%2520email%26response_type%3Dcode%26redirect_uri%3D<redirect_uri>%26state%3D%26prompt%3Dlogin%26code_challenge%3D<code_challenge>%26code_challenge_method%3DS256

Authentik then redirect to login: /if/flow/login/?next=%2Fapplication%2Fo%2Fauthorize%2F%3Fclient_id%3D<client_id>%26scope%3Dopenid%2520email%26response_type%3Dcode%26redirect_uri%3D<redirect_uri>%26state%3D%26prompt%3Dlogin%26code_challenge%3D<code_challenge>%26code_challenge_method%3DS256

After finally completing the login, the user is not redirect to the redirect_uri but to the same first url /application/o/authorize/?... then the same second url then the third. Only after completing the second login, the user is redirected to the redirect_uri.

From what I saw, the 3 first request send the same session cookie with authenticated: false and the 3 last request another session cookie with authenticated: true.

I found another issue describing the same problem https://github.com/goauthentik/authentik/issues/12182 but it was close without answer.

How to reproduce

  1. create an application with an oauth provider
  2. add prompt=login to authorization url
  3. login needs to be completed twice before redirection to redirect_uri

Expected behavior

The user only needs to login once even with prompt=login.

Screenshots

No response

Additional context

No response

Deployment Method

Kubernetes

Version

2025.10.0

Relevant log output

bash