Class OidcIntrospectionEndpointController


  • public class OidcIntrospectionEndpointController
    extends org.apereo.cas.support.oauth.web.endpoints.OAuth20IntrospectionEndpointController
    Since:
    5.2.0
    • Field Summary

      • Fields inherited from class org.apereo.cas.support.oauth.web.endpoints.BaseOAuth20Controller

        accessTokenFactory, casProperties, principalFactory, scopeToAttributesFilter, servicesManager, ticketGrantingTicketCookieGenerator, ticketRegistry, webApplicationServiceServiceFactory
    • Constructor Summary

      Constructors 
      Constructor Description
      OidcIntrospectionEndpointController​(org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.ticket.registry.TicketRegistry ticketRegistry, org.apereo.cas.ticket.accesstoken.AccessTokenFactory accessTokenFactory, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory, org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService> webApplicationServiceServiceFactory, org.apereo.cas.support.oauth.profile.OAuth20ProfileScopeToAttributesFilter scopeToAttributesFilter, org.apereo.cas.configuration.CasConfigurationProperties casProperties, org.apereo.cas.web.support.CookieRetrievingCookieGenerator cookieGenerator, org.apereo.cas.CentralAuthenticationService centralAuthenticationService, org.apereo.cas.audit.AuditableExecution registeredServiceAccessStrategyEnforcer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apereo.cas.support.oauth.web.response.introspection.OAuth20IntrospectionAccessTokenResponse createIntrospectionValidResponse​(org.apereo.cas.support.oauth.services.OAuthRegisteredService service, org.apereo.cas.ticket.accesstoken.AccessToken ticket)  
      org.springframework.http.ResponseEntity<org.apereo.cas.support.oauth.web.response.introspection.OAuth20IntrospectionAccessTokenResponse> handlePostRequest​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Handle post request.
      org.springframework.http.ResponseEntity<org.apereo.cas.support.oauth.web.response.introspection.OAuth20IntrospectionAccessTokenResponse> handleRequest​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Handle request.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OidcIntrospectionEndpointController

        public OidcIntrospectionEndpointController​(org.apereo.cas.services.ServicesManager servicesManager,
                                                   org.apereo.cas.ticket.registry.TicketRegistry ticketRegistry,
                                                   org.apereo.cas.ticket.accesstoken.AccessTokenFactory accessTokenFactory,
                                                   org.apereo.cas.authentication.principal.PrincipalFactory principalFactory,
                                                   org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService> webApplicationServiceServiceFactory,
                                                   org.apereo.cas.support.oauth.profile.OAuth20ProfileScopeToAttributesFilter scopeToAttributesFilter,
                                                   org.apereo.cas.configuration.CasConfigurationProperties casProperties,
                                                   org.apereo.cas.web.support.CookieRetrievingCookieGenerator cookieGenerator,
                                                   org.apereo.cas.CentralAuthenticationService centralAuthenticationService,
                                                   org.apereo.cas.audit.AuditableExecution registeredServiceAccessStrategyEnforcer)
    • Method Detail

      • handleRequest

        @GetMapping(consumes="application/x-www-form-urlencoded",
                    produces="application/json",
                    value="/oidc/introspect")
        public org.springframework.http.ResponseEntity<org.apereo.cas.support.oauth.web.response.introspection.OAuth20IntrospectionAccessTokenResponse> handleRequest​(javax.servlet.http.HttpServletRequest request,
                                                                                                                                                                      javax.servlet.http.HttpServletResponse response)
        Handle request.
        Overrides:
        handleRequest in class org.apereo.cas.support.oauth.web.endpoints.OAuth20IntrospectionEndpointController
        Parameters:
        request - the request
        response - the response
        Returns:
        the response entity
      • handlePostRequest

        @PostMapping(consumes="application/x-www-form-urlencoded",
                     produces="application/json",
                     value="/oidc/introspect")
        public org.springframework.http.ResponseEntity<org.apereo.cas.support.oauth.web.response.introspection.OAuth20IntrospectionAccessTokenResponse> handlePostRequest​(javax.servlet.http.HttpServletRequest request,
                                                                                                                                                                          javax.servlet.http.HttpServletResponse response)
        Handle post request.
        Overrides:
        handlePostRequest in class org.apereo.cas.support.oauth.web.endpoints.OAuth20IntrospectionEndpointController
        Parameters:
        request - the request
        response - the response
        Returns:
        the response entity
      • createIntrospectionValidResponse

        protected org.apereo.cas.support.oauth.web.response.introspection.OAuth20IntrospectionAccessTokenResponse createIntrospectionValidResponse​(org.apereo.cas.support.oauth.services.OAuthRegisteredService service,
                                                                                                                                                   org.apereo.cas.ticket.accesstoken.AccessToken ticket)
        Overrides:
        createIntrospectionValidResponse in class org.apereo.cas.support.oauth.web.endpoints.OAuth20IntrospectionEndpointController