asp.net mvc 5 - How to remember the login in MVC5 when an external provider is used -


in our mvc5-application owin, use additional local accounts external logins (google). when user logs in local account, can activate option remember him, has not log-in every time newly. when logs in google-account, every time must click newly on external login-button google.

is there built-in option activate “remember me”-option external logins? or there secure way add feature?

you need set ispersistent true accomplish when sign in user identity (you want add kind of remember me checkbox external flow well)

        authenticationmanager.signin(new authenticationproperties { ispersistent = <rememberme> }, <useridentity>); 

Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -