@Component(value="tofuUserApprovalHandler") public class TofuUserApprovalHandler extends Object implements org.springframework.security.oauth2.provider.approval.UserApprovalHandler
Constructor and Description |
---|
TofuUserApprovalHandler() |
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)
Check if the user has already stored a positive approval decision for this site; or if the
site is whitelisted, approve it automatically.
|
Map<String,Object> |
getUserApprovalRequest(org.springframework.security.oauth2.provider.AuthorizationRequest authorizationRequest,
org.springframework.security.core.Authentication userAuthentication) |
boolean |
isApproved(org.springframework.security.oauth2.provider.AuthorizationRequest authorizationRequest,
org.springframework.security.core.Authentication userAuthentication)
Check if the user has already stored a positive approval decision for this site; or if the
site is whitelisted, approve it automatically.
|
org.springframework.security.oauth2.provider.AuthorizationRequest |
updateAfterApproval(org.springframework.security.oauth2.provider.AuthorizationRequest authorizationRequest,
org.springframework.security.core.Authentication userAuthentication) |
public TofuUserApprovalHandler()
public boolean isApproved(org.springframework.security.oauth2.provider.AuthorizationRequest authorizationRequest, org.springframework.security.core.Authentication userAuthentication)
isApproved
in interface org.springframework.security.oauth2.provider.approval.UserApprovalHandler
authorizationRequest
- the incoming authorization requestuserAuthentication
- the Principal representing the currently-logged-in userpublic 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
authorizationRequest
- the incoming authorization requestuserAuthentication
- the Principal representing the currently-logged-in userpublic org.springframework.security.oauth2.provider.AuthorizationRequest updateAfterApproval(org.springframework.security.oauth2.provider.AuthorizationRequest authorizationRequest, org.springframework.security.core.Authentication userAuthentication)
updateAfterApproval
in interface org.springframework.security.oauth2.provider.approval.UserApprovalHandler
public Map<String,Object> getUserApprovalRequest(org.springframework.security.oauth2.provider.AuthorizationRequest authorizationRequest, org.springframework.security.core.Authentication userAuthentication)
getUserApprovalRequest
in interface org.springframework.security.oauth2.provider.approval.UserApprovalHandler
Copyright © 2018. All rights reserved.