简体   繁体   中英

thinktecture IdentityServer “remember me” configuration

In the 'AuthenticationOptions', If i set true the propperty "RememberLastUsername", the username is always autocomplete with the previous username that i wrote in the login form. If i set the property to false, the username never remember the last username i wrote in the login form.

What i want is that login form can to remember the previous userName i wrote if i checked the "remember me" option in the login form, if i do not check that option i do no want that username is remembered next time i will log in.

It is possible with the identityServer properties?

thanks in advance

Those are two different settings. The "RememberLastUsername" works as you described it -- it just is a convenience for pre-populating the username and it is implemented by issuing a cookie. This is a global setting and is unrelated to the "remember me" checkbox on the login page.

The "remember me" checkbox issues a persistent login cookie for the user and as such the user will no longer be take to the login page when an application makes login requests against IdentityServer.

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