Package org.apereo.cas.web
Class TokenAuthenticationEndpoint
java.lang.Object
org.apereo.cas.web.BaseCasActuatorEndpoint
org.apereo.cas.web.TokenAuthenticationEndpoint
@Endpoint(id="tokenAuth",
defaultAccess=NONE)
public class TokenAuthenticationEndpoint
extends org.apereo.cas.web.BaseCasActuatorEndpoint
This is
TokenAuthenticationEndpoint.- Since:
- 7.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionTokenAuthenticationEndpoint(org.springframework.beans.factory.ObjectProvider<org.apereo.cas.configuration.CasConfigurationProperties> casProperties, org.springframework.beans.factory.ObjectProvider<org.apereo.cas.authentication.principal.PrincipalResolver> principalResolver, org.springframework.beans.factory.ObjectProvider<org.apereo.cas.services.ServicesManager> servicesManager, org.springframework.beans.factory.ObjectProvider<org.apereo.cas.audit.AuditableExecution> registeredServiceAccessStrategyEnforcer, org.springframework.beans.factory.ObjectProvider<org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService>> serviceFactory, org.springframework.beans.factory.ObjectProvider<org.apereo.cas.authentication.principal.PrincipalFactory> principalFactory) -
Method Summary
Modifier and TypeMethodDescriptionMap<?, ?> produceToken(String username, String service) Produce token for user and service.Map<?, ?> validateToken(String token, String service) Validate token and return results.
-
Constructor Details
-
TokenAuthenticationEndpoint
public TokenAuthenticationEndpoint(org.springframework.beans.factory.ObjectProvider<org.apereo.cas.configuration.CasConfigurationProperties> casProperties, org.springframework.beans.factory.ObjectProvider<org.apereo.cas.authentication.principal.PrincipalResolver> principalResolver, org.springframework.beans.factory.ObjectProvider<org.apereo.cas.services.ServicesManager> servicesManager, org.springframework.beans.factory.ObjectProvider<org.apereo.cas.audit.AuditableExecution> registeredServiceAccessStrategyEnforcer, org.springframework.beans.factory.ObjectProvider<org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService>> serviceFactory, org.springframework.beans.factory.ObjectProvider<org.apereo.cas.authentication.principal.PrincipalFactory> principalFactory)
-
-
Method Details
-
produceToken
@WriteOperation(produces="application/json") public Map<?,?> produceToken(@Selector String username, String service) throws Throwable Produce token for user and service.- Parameters:
username- the usernameservice- the service- Returns:
- the map
- Throws:
Throwable- the throwable
-
validateToken
@ReadOperation(produces="application/json") public Map<?,?> validateToken(@Selector String token, String service) throws Throwable Validate token and return results.- Parameters:
token- the tokenservice- the service- Returns:
- the map
- Throws:
Throwable- the throwable
-