# How to always ask user for authentication method and prevent auto-login

**URL:** <https://community.auth0.com/t/how-to-always-ask-user-for-authentication-method-and-prevent-auto-login/128480>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [February 28, 2024, 10:00am UTC](https://community.auth0.com/t/how-to-always-ask-user-for-authentication-method-and-prevent-auto-login/128480 "2024-02-28T10:00:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyfs-nm](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kyfs-nm/32/55223_2.png) [@kyfs-nm](https://community.auth0.com/u/kyfs-nm)\
**Post date:** [February 28, 2024, 10:00am UTC](https://community.auth0.com/t/how-to-always-ask-user-for-authentication-method-and-prevent-auto-login/128480/1 "2024-02-28T10:00:59Z")

</div>

I am using Go’s [The Go Programming Language](http://golang.org/x/oauth2) package for OIDC authentication with Auth0.

Current behaviour is for the first time, I get asked which auth method to proceed with: either username/password or Proceed with Google. Now I choose Google and login with one of my Google accounts. But when I redo the authentication process, auth0 does not ask me which methods to proceed with.

I need auth0 to ask me which method to proceed with ALWAYS. If there’s any caching, how do I disable it? Or is there any parameter I can send to auth0 to force it to ask me always?

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [February 29, 2024, 4:37pm UTC](https://community.auth0.com/t/how-to-always-ask-user-for-authentication-method-and-prevent-auto-login/128480/3 "2024-02-29T16:37:06Z")

</div>

Thank you for posting @kyfs-nm !

To always display the login page for a user, you can set the _ **prompt=login** _ parameter with your authorization request. If I’m not mistaken, [this](https://cs.opensource.google/go/x/oauth2/+/refs/tags/v0.17.0:oauth2.go;l=140) is the method you can use to set this param:value pair with oauth2.go.

Additionally, to ensure that users have to authenticate every time an app asks for a token, consider updating the _ **sso\_disabled** _ flag to `true` at the application level using the Management API’s `PATCH /api/v2/clients/{id}` endpoint. See [Update a Client](https://auth0.com/docs/api/management/v2/clients/patch-clients-by-id) for more details.

If that doesn’t answer your question, could you please share more about the problem:

> [@kyfs-nm](#):
>
> But when I redo the authentication process

Do you refer to a case when user logged out of your app and attempt to log in again?

> [@kyfs-nm](#):
>
> auth0 does not ask me which methods to proceed with.

Can you please share what login page are you presented with then? Are you asked to provide credentials to google or are you automatically logged in?

---

<div class="post-metadata">

**Author:** ![kyfs-nm](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kyfs-nm/32/55223_2.png) [@kyfs-nm](https://community.auth0.com/u/kyfs-nm)\
**Post date:** [March 1, 2024, 11:45am UTC](https://community.auth0.com/t/how-to-always-ask-user-for-authentication-method-and-prevent-auto-login/128480/4 "2024-03-01T11:45:43Z")

</div>

thanks for the response! will try this and get back to you.

EDIT: that was the solution. had to set `sso_disabled=true` like you mentioned

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 15, 2024, 11:46am UTC](https://community.auth0.com/t/how-to-always-ask-user-for-authentication-method-and-prevent-auto-login/128480/5 "2024-03-15T11:46:10Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
