Package org.apereo.cas.authentication
Interface AuthenticationServiceSelectionStrategy
- All Superinterfaces:
org.springframework.core.Ordered
,Serializable
public interface AuthenticationServiceSelectionStrategy
extends Serializable, org.springframework.core.Ordered
This is
AuthenticationServiceSelectionStrategy
which attempts to
resolve and nominate a service during a validation event. By default
most services provided to CAS are taken and resolved verbatim. However,
in scenarios where a given module ends up inserting target service identifiers
into the service parameter as query strings where the final service URL is
designated to be a callback url to CAS which carries the real service identifier,
(such as SAML2 support where callbacks are used to route the request back to CAS),
an implementation of this strategy may be used to detect the query parameters
inside the URL to use the real service for user attribute processing and more.
Services resolved via this strategy must still be vetted against the service registry.- Since:
- 5.0.0
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptionresolveServiceFrom
(Service service) Resolves the real service from the provided service, if appropriate.boolean
Indicates whether this strategy supports service selection.Methods inherited from interface org.springframework.core.Ordered
getOrder
-
Method Details
-
resolveServiceFrom
Resolves the real service from the provided service, if appropriate.- Parameters:
service
- the provided service by the caller- Returns:
- the resolved service
- Throws:
Throwable
- the throwable
-
supports
Indicates whether this strategy supports service selection.- Parameters:
service
- the service- Returns:
- true/false
-