# Openid, Prompt=Login not working when windows integrated auth in

**URL:** <https://devforum.okta.com/t/openid-prompt-login-not-working-when-windows-integrated-auth-in/7930>\
**Category:** OAuth/OIDC\
**Created:** [February 4, 2020, 12:47am UTC](https://devforum.okta.com/t/openid-prompt-login-not-working-when-windows-integrated-auth-in/7930 "2020-02-04T00:47:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![muralitharan](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@muralitharan](https://devforum.okta.com/u/muralitharan)\
**Post date:** [February 4, 2020, 12:47am UTC](https://devforum.okta.com/t/openid-prompt-login-not-working-when-windows-integrated-auth-in/7930/1 "2020-02-04T00:47:50Z")

</div>

Hi,

Prompt=Login is not working.

The user is already logged in but needs another explicit confirmation so our application ask the user to confirm by forcing login again. To acheive that we set Prompt=login.  
But it does not work. Here below are we found in the network round trip.

GET /oauth2/v1/authorize?response\_type=code&client\_id=0oa2kgb008ukz4vin0i7&redirect\_uri=http://localhost&scope=openid profile email&state=1002282471569536143144216209158&prompt=login HTTP/1.1  
Response HTTP/1.1 302 Found

GET /login/login.htm?fromURI=/oauth2/v1/authorize/redirect?okta\_key=GtU7buqsETw6JtrFhSXqky1F6pizayusKszcbXG3qq8 HTTP/1.1

During the second GET, we lost the prompt=login and that uses the existing session.  
Is this a bug?. Do we have a workaround?

Regards,  
Murali S

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [February 4, 2020, 1:43am UTC](https://devforum.okta.com/t/openid-prompt-login-not-working-when-windows-integrated-auth-in/7930/2 "2020-02-04T01:43:32Z")

</div>

Hi @muralitharan

If the user does not have an active session, an okta\_key is generated and the path that the user accessed (/oauth2/v1/authorize?response\_type…) is linked to the okta\_key.

Once the user authenticates, the okta\_key is checked in the database, the path is returned, user is redirected back to it and the okta\_key is deleted from the database.

---

<div class="post-metadata">

**Author:** ![muralitharan](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@muralitharan](https://devforum.okta.com/u/muralitharan)\
**Post date:** [February 4, 2020, 4:22am UTC](https://devforum.okta.com/t/openid-prompt-login-not-working-when-windows-integrated-auth-in/7930/3 "2020-02-04T04:22:22Z")

</div>

Thanks for the reply about okta key.

My main question was what happened to prompt=login parameter.

Why was it missed?

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [February 4, 2020, 4:34am UTC](https://devforum.okta.com/t/openid-prompt-login-not-working-when-windows-integrated-auth-in/7930/4 "2020-02-04T04:34:33Z")

</div>

Hi @muralitharan

The okta\_key parameter is stored along with the other parameters and path inside the database and linked with the okta\_key that is generated and brought in the front-end.

Once you authenticate, you are redirected to the original path with has all the parameters previous requested including prompt=login.

---

<div class="post-metadata">

**Author:** ![muralitharan](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@muralitharan](https://devforum.okta.com/u/muralitharan)\
**Post date:** [February 4, 2020, 2:28pm UTC](https://devforum.okta.com/t/openid-prompt-login-not-working-when-windows-integrated-auth-in/7930/5 "2020-02-04T14:28:17Z")

</div>

It does make sense and also NOT.

Prompt = login parameter is something needs to be used during the authentication. It enforces the user to enter the credentials instead of using existing session. If OKTA uses after successful authentication there is no sense.

Basically Prompt parameter is not working as per openid/oauth standard.

I think the problem is specifically when windows integrated authentication is enabled.

---

<div class="post-metadata">

**Author:** ![MarkBB](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@MarkBB](https://devforum.okta.com/u/MarkBB)\
**Post date:** [August 18, 2022, 11:47am UTC](https://devforum.okta.com/t/openid-prompt-login-not-working-when-windows-integrated-auth-in/7930/6 "2022-08-18T11:47:13Z")

</div>

Okta doesn’t pass the “prompt” parameter to the external Google IdP (Google and Microsoft require `select_account` instead of `login` for the prompts). It leads to the automatic logins and it is a serious security breach.

The [Auth0.com](http://Auth0.com) has a special parameter `upstream_params` for the similar issue [Pass Parameters to Identity Providers](https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps) which solves this problem.

There is also an issue in the Okta Help Center: [Okta Help Center (Lightning)](https://support.okta.com/help/s/question/0D54z00007WkVoHCAV/passing-promptselectaccount-to-identity-provider?language=en_US) but the provided link doesn’t have any mentions about additional IdP parameters:  
[Add an external Identity Provider | Okta Developer](https://developer.okta.com/docs/guides/identity-providers/#enterprise-identity-providers)

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 12, 2024, 9:52pm UTC](https://devforum.okta.com/t/openid-prompt-login-not-working-when-windows-integrated-auth-in/7930/7 "2024-02-12T21:52:10Z")

</div>

Closed on February 12, 2024, 9:52pm UTC


