Package overit.geocall.base.rs2.auth
Class AuthServiceV2
java.lang.Object
overit.geocall.base.rs2.auth.AuthServiceV2
-
Constructor Summary
ConstructorsConstructorDescriptionAuthServiceV2(HttpServletRequest httpRequest, overit.geocall.rs.utils.XSRFCookieService xsrfCookieService) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.http.HttpCookieprotected org.springframework.http.HttpCookiegenerateCSRFCookie(boolean died) @Valid org.springframework.http.ResponseEntity<AuthResponse> protected AuthResponsegetResponseFrom(AccessToken token) org.springframework.http.ResponseEntity<Void>
-
Constructor Details
-
AuthServiceV2
public AuthServiceV2(HttpServletRequest httpRequest, overit.geocall.rs.utils.XSRFCookieService xsrfCookieService)
-
-
Method Details
-
generateToken
@PostMapping(produces="application/json") @Valid public @Valid org.springframework.http.ResponseEntity<AuthResponse> generateToken() throws DAValidateException, DAException- Throws:
DAValidateExceptionDAException
-
invalidateToken
@DeleteMapping public org.springframework.http.ResponseEntity<Void> invalidateToken() throws DAValidateException, DAException- Throws:
DAValidateExceptionDAException
-
deleteSATCookie
-
generateCSRFCookie
protected org.springframework.http.HttpCookie generateCSRFCookie(boolean died) -
getResponseFrom
- Throws:
DAExceptionDAValidateException
-