Package cronapp.framework.security
Class SecurityController
java.lang.Object
cronapp.framework.security.SecurityController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<List<AuthenticationMethod>> voidconfirmResetPassword(String password, String otp, String authToken, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<AuthenticationResponse> me(org.springframework.security.core.Authentication authentication, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<AuthenticationResponse> refresh(org.springframework.security.core.Authentication authentication, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<String> resetPassword(String email) org.springframework.http.ResponseEntity<DefaultResponse> token()
-
Constructor Details
-
SecurityController
public SecurityController()
-
-
Method Details
-
token
-
refresh
@RequestMapping(path="auth/refresh", method=GET) public org.springframework.http.ResponseEntity<AuthenticationResponse> refresh(org.springframework.security.core.Authentication authentication, jakarta.servlet.http.HttpServletRequest request) throws org.springframework.security.core.AuthenticationException - Throws:
org.springframework.security.core.AuthenticationException
-
authProviders
@RequestMapping(path="authproviders", method=GET, produces="application/json") public org.springframework.http.ResponseEntity<List<AuthenticationMethod>> authProviders() -
me
@RequestMapping(path="me", method=GET) public org.springframework.http.ResponseEntity<AuthenticationResponse> me(org.springframework.security.core.Authentication authentication, jakarta.servlet.http.HttpServletRequest request) throws org.springframework.security.core.AuthenticationException - Throws:
org.springframework.security.core.AuthenticationException
-
signUp
@PostMapping("auth/signup") public org.springframework.http.ResponseEntity<DefaultResponse> signUp(@RequestBody Var fields) -
resetPassword
-
confirmResetPassword
-