diff options
author | Vitaly Takmazov | 2024-02-09 17:12:21 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-02-09 17:12:21 +0300 |
commit | ab87188de28ae266aebf03fb429880cf293c6ee9 (patch) | |
tree | ce0ab0357b3c03bee69c93545babea21956689cd /src/main/java/com/juick | |
parent | 8289a0b1097f02a99d62f4f7750e6b46a54a54fc (diff) |
API: accept authorization cookie
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r-- | src/main/java/com/juick/config/SecurityConfig.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/juick/config/SecurityConfig.java b/src/main/java/com/juick/config/SecurityConfig.java index 030cdcc2..a7007648 100644 --- a/src/main/java/com/juick/config/SecurityConfig.java +++ b/src/main/java/com/juick/config/SecurityConfig.java @@ -223,6 +223,9 @@ public class SecurityConfig { .exceptionHandling(exceptionHandling -> exceptionHandling .authenticationEntryPoint(apiAuthenticationEntryPoint())) .csrf(AbstractHttpConfigurer::disable) + .rememberMe(rememberMe -> rememberMe + .rememberMeCookieDomain(webDomain).key(rememberMeKey) + .rememberMeServices(hashCookieServices())) .headers(headers -> headers.defaultsDisabled().cacheControl(withDefaults())); return http.build(); } |