Retrieve remember-me key from service as fallback
Fixes: gh-4140
This commit is contained in:
committed by
Eleftheria Stein-Kousathana
parent
4b4c6e612b
commit
b13f750646
@@ -435,7 +435,11 @@ public final class RememberMeConfigurer<H extends HttpSecurityBuilder<H>>
|
||||
*/
|
||||
private String getKey() {
|
||||
if (this.key == null) {
|
||||
this.key = UUID.randomUUID().toString();
|
||||
if (this.rememberMeServices instanceof AbstractRememberMeServices) {
|
||||
this.key = ((AbstractRememberMeServices) rememberMeServices).getKey();
|
||||
} else {
|
||||
this.key = UUID.randomUUID().toString();
|
||||
}
|
||||
}
|
||||
return this.key;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user