public interface RegisteredServiceAccessStrategy
extends java.io.Serializable
RegisteredServiceAccessStrategy
that can decide if a service is recognized and authorized to participate
in the CAS protocol flow during authentication/validation events.| Modifier and Type | Method and Description |
|---|---|
boolean |
doPrincipalAttributesAllowServiceAccess(java.lang.String principal,
java.util.Map<java.lang.String,java.lang.Object> principalAttributes)
Verify authorization policy by checking the pre-configured rules
that may depend on what the principal might be carrying.
|
java.net.URI |
getUnauthorizedRedirectUrl()
Redirect the request to a separate and possibly external URL
in case authorization fails for this service.
|
boolean |
isServiceAccessAllowed()
Verify is the service is enabled and recognized by CAS.
|
boolean |
isServiceAccessAllowedForSso()
Assert that the service can participate in sso.
|
boolean isServiceAccessAllowed()
boolean isServiceAccessAllowedForSso()
boolean doPrincipalAttributesAllowServiceAccess(java.lang.String principal,
java.util.Map<java.lang.String,java.lang.Object> principalAttributes)
principal - The authenticated principalprincipalAttributes - the principal attributes. Rather than passing the principal
directly, we are only allowing principal attributes
given they may be coming from a source external to the principal
itself. (Cached principal attributes, etc)java.net.URI getUnauthorizedRedirectUrl()