Package sonia.scm.security
Interface AccessTokenCookieIssuer
public interface AccessTokenCookieIssuer
Generates cookies and invalidates access token cookies.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
authenticate
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AccessToken accessToken) Creates a cookie for token authentication and attaches it to the response.void
invalidate
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Invalidates the authentication cookie.
-
Method Details
-
authenticate
void authenticate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AccessToken accessToken) Creates a cookie for token authentication and attaches it to the response. -
invalidate
void invalidate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Invalidates the authentication cookie.
-