Package security.controller
Class AuthenticationController
java.lang.Object
security.controller.AuthenticationController
- All Implemented Interfaces:
BaseAuthenticationController<Credentials>
@RestController
@AuthMethodConditional(FORM)
public class AuthenticationController
extends Object
implements BaseAuthenticationController<Credentials>
- Author:
- Ildar
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationController
(AuthenticationService authenticationService, AuthenticationHelper authenticationHelper, SimpleCredentialsService simpleCredentialsService, UserService userService, org.springframework.context.ApplicationEventPublisher eventPublisher, LdapAuthService ldapAuthService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
authenticate
(Credentials credentials, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) void
changePassword
(@Valid UserPasswordResetRequestDto dto, String token, javax.servlet.http.HttpServletResponse response) void
confirmEmail
(String link, javax.servlet.http.HttpServletResponse response) void
refreshToken
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) void
register
(@Valid UserDto userDto, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) void
resetPassword
(String email, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) void
setChangePasswordService
(ChangePasswordService changePasswordService) void
setRegistrationService
(RegistrationService registrationService) void
setVerificationLinkService
(VerificationLinkService verificationLinkService)
-
Constructor Details
-
AuthenticationController
@Autowired public AuthenticationController(AuthenticationService authenticationService, AuthenticationHelper authenticationHelper, SimpleCredentialsService simpleCredentialsService, UserService userService, org.springframework.context.ApplicationEventPublisher eventPublisher, LdapAuthService ldapAuthService)
-
-
Method Details
-
setRegistrationService
@Autowired(required=false) public void setRegistrationService(RegistrationService registrationService) -
setVerificationLinkService
@Autowired(required=false) public void setVerificationLinkService(VerificationLinkService verificationLinkService) -
setChangePasswordService
@Autowired(required=false) public void setChangePasswordService(ChangePasswordService changePasswordService) -
authenticate
@RequestMapping(value="/security/authenticate", method=POST, consumes="application/json", headers="Auth-method=Password") public void authenticate(@RequestBody Credentials credentials, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) - Specified by:
authenticate
in interfaceBaseAuthenticationController<Credentials>
-
refreshToken
@RequestMapping(value="/security/refresh-token", method=PUT) public void refreshToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) -
register
@RequestMapping(value="/security/register", method=POST, consumes="application/json") public void register(@Valid @RequestBody @Valid UserDto userDto, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) -
confirmEmail
@RequestMapping(value="/security/confirm", method=PUT) public void confirmEmail(@RequestParam String link, javax.servlet.http.HttpServletResponse response) -
resetPassword
@RequestMapping(value="/security/reset-password", method=POST) public void resetPassword(@RequestParam String email, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) -
changePassword
@RequestMapping(value="/security/change-password", method=PUT, consumes="application/json") public void changePassword(@Valid @RequestBody @Valid UserPasswordResetRequestDto dto, @RequestParam(name="token") String token, javax.servlet.http.HttpServletResponse response)
-