public class ApiApprovalHandler
extends org.springframework.security.oauth2.provider.approval.ApprovalStoreUserApprovalHandler
| Constructor and Description |
|---|
ApiApprovalHandler() |
| 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) |
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.ApprovalStoreUserApprovalHandlerclientDetailsService - 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.UserApprovalHandlercheckForPreApproval in class org.springframework.security.oauth2.provider.approval.ApprovalStoreUserApprovalHandlerCopyright © 2017. All rights reserved.