Class OidcAuthorizeEndpointController


  • public class OidcAuthorizeEndpointController
    extends org.apereo.cas.support.oauth.web.endpoints.OAuth20AuthorizeEndpointController
    Since:
    5.0.0
    • Field Summary

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

        authenticationBuilder, consentApprovalViewResolver, oauthAuthorizationResponseBuilders, oAuthCodeFactory, oauthRequestValidators, registeredServiceAccessStrategyEnforcer
      • 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
      OidcAuthorizeEndpointController​(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.ticket.code.OAuthCodeFactory oAuthCodeFactory, org.apereo.cas.support.oauth.web.views.ConsentApprovalViewResolver consentApprovalViewResolver, org.apereo.cas.support.oauth.profile.OAuth20ProfileScopeToAttributesFilter scopeToAttributesFilter, org.apereo.cas.configuration.CasConfigurationProperties casProperties, org.apereo.cas.web.support.CookieRetrievingCookieGenerator ticketGrantingTicketCookieGenerator, org.apereo.cas.support.oauth.authenticator.OAuth20CasAuthenticationBuilder authenticationBuilder, java.util.Set<org.apereo.cas.support.oauth.web.response.callback.OAuth20AuthorizationResponseBuilder> oauthAuthorizationResponseBuilders, java.util.Set<org.apereo.cas.support.oauth.validator.authorization.OAuth20AuthorizationRequestValidator> oauthRequestValidators, org.apereo.cas.audit.AuditableExecution registeredServiceAccessStrategyEnforcer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.web.servlet.View buildAuthorizationForRequest​(org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService, org.pac4j.core.context.J2EContext context, java.lang.String clientId, org.apereo.cas.authentication.principal.Service service, org.apereo.cas.authentication.Authentication authentication)  
      org.springframework.web.servlet.ModelAndView handleRequest​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      org.springframework.web.servlet.ModelAndView handleRequestPost​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      • Methods inherited from class org.apereo.cas.support.oauth.web.endpoints.OAuth20AuthorizeEndpointController

        getRegisteredServiceByClientId, redirectToCallbackRedirectUrl
      • Methods inherited from class java.lang.Object

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

      • OidcAuthorizeEndpointController

        public OidcAuthorizeEndpointController​(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.ticket.code.OAuthCodeFactory oAuthCodeFactory,
                                               org.apereo.cas.support.oauth.web.views.ConsentApprovalViewResolver consentApprovalViewResolver,
                                               org.apereo.cas.support.oauth.profile.OAuth20ProfileScopeToAttributesFilter scopeToAttributesFilter,
                                               org.apereo.cas.configuration.CasConfigurationProperties casProperties,
                                               org.apereo.cas.web.support.CookieRetrievingCookieGenerator ticketGrantingTicketCookieGenerator,
                                               org.apereo.cas.support.oauth.authenticator.OAuth20CasAuthenticationBuilder authenticationBuilder,
                                               java.util.Set<org.apereo.cas.support.oauth.web.response.callback.OAuth20AuthorizationResponseBuilder> oauthAuthorizationResponseBuilders,
                                               java.util.Set<org.apereo.cas.support.oauth.validator.authorization.OAuth20AuthorizationRequestValidator> oauthRequestValidators,
                                               org.apereo.cas.audit.AuditableExecution registeredServiceAccessStrategyEnforcer)
    • Method Detail

      • handleRequest

        @GetMapping("/oidc/authorize")
        public org.springframework.web.servlet.ModelAndView handleRequest​(javax.servlet.http.HttpServletRequest request,
                                                                          javax.servlet.http.HttpServletResponse response)
                                                                   throws java.lang.Exception
        Overrides:
        handleRequest in class org.apereo.cas.support.oauth.web.endpoints.OAuth20AuthorizeEndpointController
        Throws:
        java.lang.Exception
      • handleRequestPost

        @PostMapping("/oidc/authorize")
        public org.springframework.web.servlet.ModelAndView handleRequestPost​(javax.servlet.http.HttpServletRequest request,
                                                                              javax.servlet.http.HttpServletResponse response)
                                                                       throws java.lang.Exception
        Overrides:
        handleRequestPost in class org.apereo.cas.support.oauth.web.endpoints.OAuth20AuthorizeEndpointController
        Throws:
        java.lang.Exception
      • buildAuthorizationForRequest

        protected org.springframework.web.servlet.View buildAuthorizationForRequest​(org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService,
                                                                                    org.pac4j.core.context.J2EContext context,
                                                                                    java.lang.String clientId,
                                                                                    org.apereo.cas.authentication.principal.Service service,
                                                                                    org.apereo.cas.authentication.Authentication authentication)
        Overrides:
        buildAuthorizationForRequest in class org.apereo.cas.support.oauth.web.endpoints.OAuth20AuthorizeEndpointController