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
Since:
7.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    Map<?,?>
    produceToken(String username, String service)
    Produce token for user and service.
    Map<?,?>
    validateToken(String token, String service)
    Validate token and return results.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 username
      service - 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 token
      service - the service
      Returns:
      the map
      Throws:
      Throwable - the throwable