public class CdmUserApprovalHandler
extends org.springframework.security.oauth2.provider.approval.ApprovalStoreUserApprovalHandler
Constructor and Description |
---|
CdmUserApprovalHandler() |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.oauth2.provider.AuthorizationRequest |
checkForPreApproval(org.springframework.security.oauth2.provider.AuthorizationRequest authorizationRequest,
org.springframework.security.core.Authentication userAuthentication)
Allows automatic approval for a white list of clients in the implicit grant case.
|
void |
setClientDetailsService(org.springframework.security.oauth2.provider.ClientDetailsService clientDetailsService)
Service to load client details (optional) for auto approval checks.
|
void |
setUseApprovalStore(boolean useApprovalStore) |
public void setClientDetailsService(org.springframework.security.oauth2.provider.ClientDetailsService clientDetailsService)
setClientDetailsService
in class org.springframework.security.oauth2.provider.approval.ApprovalStoreUserApprovalHandler
clientDetailsService
- a client details servicepublic void setUseApprovalStore(boolean useApprovalStore)
useApprovalStore
- the useTokenServices to setpublic org.springframework.security.oauth2.provider.AuthorizationRequest checkForPreApproval(org.springframework.security.oauth2.provider.AuthorizationRequest authorizationRequest, org.springframework.security.core.Authentication userAuthentication)
checkForPreApproval
in interface org.springframework.security.oauth2.provider.approval.UserApprovalHandler
checkForPreApproval
in class org.springframework.security.oauth2.provider.approval.ApprovalStoreUserApprovalHandler
authorizationRequest
- The authorization request.userAuthentication
- the current user authenticationCopyright © 2007-2020 EDIT. All Rights Reserved.