spring-security icon indicating copy to clipboard operation
spring-security copied to clipboard

Support Remember-Me for OAuth2 login

Open gotson opened this issue 1 year ago • 1 comments

When OAuth2 login is enabled, remember-me parameter (ie when it's not set to always remember) will not be honored, because the original request (to /oauth2/authorization/<provider>) is different from the actual request coming back from the OAuth2 provider (to /login/oauth2/code/<provider>), and that second request does not have the remember-me parameter set.

It would be good if this could be supported, ie when calling /oauth2/authorization/<provider>?remember-me=true, the response would set the remember-me cookie.

Expected Behavior

Remember-me cookie is set on OAuth2 login response

Current Behavior

Remember-me cookie is not set on OAuth2 login response

Context

My application offers optional OAuth2 login, along with traditional username/password login. There is a checkbox for remember-me, but this does not apply to OAuth2 login currently.

gotson avatar May 16 '24 10:05 gotson

@jgrandja hi, we need support

EricWvi avatar May 18 '25 18:05 EricWvi

I'm interested too about this functionality.

Lordingard avatar Sep 26 '25 09:09 Lordingard