@FrameworkRestController public class EmbeddedAuthenticationController extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EmbeddedAuthenticationController.PasswordResetEmailRequest
Represents a request to get an email with a link to reset a user's password.
|
| Constructor and Description |
|---|
EmbeddedAuthenticationController(UserPasswordService<PasswordToken,User> userPasswordService,
UserLoginProperties properties,
UserLoginService loginService,
AuthorizationServerService<AuthorizationServer> authorizationServerService,
AuthorizedClientService<AuthorizedClient> authorizedClientService) |
| Modifier and Type | Method and Description |
|---|---|
protected AuthorizationServerService<AuthorizationServer> |
getAuthorizationServerService() |
protected AuthorizedClientService<AuthorizedClient> |
getAuthorizedClientService() |
protected UserLoginService |
getLoginService() |
protected UserLoginProperties |
getProperties() |
protected UserPasswordService<PasswordToken,User> |
getUserPasswordService() |
org.springframework.http.ResponseEntity<Void> |
processChangePasswordRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ChangePasswordForm changePasswordForm) |
org.springframework.http.ResponseEntity<Void> |
processPwResetEmailRequest(String clientId,
EmbeddedAuthenticationController.PasswordResetEmailRequest request) |
org.springframework.http.ResponseEntity<Void> |
processResetPasswordRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ResetPasswordForm resetPasswordForm) |
protected void |
validateClientId(String clientId)
Validates the client ID and ensure that the request is allowed for it.
|
public EmbeddedAuthenticationController(UserPasswordService<PasswordToken,User> userPasswordService, UserLoginProperties properties, UserLoginService loginService, AuthorizationServerService<AuthorizationServer> authorizationServerService, AuthorizedClientService<AuthorizedClient> authorizedClientService)
@FrameworkPostMapping(path="/embedded/request-password-reset",
consumes="application/x-www-form-urlencoded")
public org.springframework.http.ResponseEntity<Void> processPwResetEmailRequest(@RequestParam(value="client_id")
String clientId,
EmbeddedAuthenticationController.PasswordResetEmailRequest request)
@FrameworkPostMapping(path="/embedded/reset-password",
consumes="application/x-www-form-urlencoded")
public org.springframework.http.ResponseEntity<Void> processResetPasswordRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ResetPasswordForm resetPasswordForm)
@FrameworkPostMapping(value="/embedded/change-password",
consumes="application/x-www-form-urlencoded")
public org.springframework.http.ResponseEntity<Void> processChangePasswordRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ChangePasswordForm changePasswordForm)
protected void validateClientId(@Nullable
String clientId)
clientId - ID of the AuthorizedClient from which the request for a user
operation is being made.ClientValidationException - when the client ID is missing, the client doesn't exist,
the parent auth server doesn't exist, or the auth server doesn't allow embedded
authentication form submissionsprotected UserPasswordService<PasswordToken,User> getUserPasswordService()
protected UserLoginProperties getProperties()
protected UserLoginService getLoginService()
protected AuthorizationServerService<AuthorizationServer> getAuthorizationServerService()
protected AuthorizedClientService<AuthorizedClient> getAuthorizedClientService()
Copyright © 2021. All rights reserved.