简体   繁体   中英

Auth0 UWP client - don't show previously logged in user

I am using the Auth0 client for UWP as described here: https://auth0.com/docs/quickstart/native/windows-uwp-csharp/01-login .

Everything is working fine, but for my application it is a security risk to show the previously logged in user screen when the Auth0 window appears, and I am wondering if there is a way to change this.

Edit: I've tried

 // Create an instance of the Auth0 client
     Auth0Client client = new Auth0Client(new Auth0ClientOptions
     {
           Domain = resources.GetString("Auth0Domain"),
           ClientId = resources.GetString("Auth0ClientID"),
           LoadProfile = false
     });

     IdentityModel.OidcClient.LoginResult loginResult = await client.LoginAsync();

     // Access the logged in user's data
     if (!loginResult.IsError)
     {
           ...
     }

You have to customize login page on Auth0 Dashboard navigating to Hosted Pages and enabling Customize Login Page and set rememberLastLogin: false in content.

Related links:

Custom Login Page(login required)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM