Class AuthorizationController

  • All Implemented Interfaces:
    Component, DestructableComponent, InitializableComponent

    @ThreadSafe
    @Controller
    @RequestMapping("%{idp.authn.oidc.rp.externalAuthnPath:/Authn/OIDC/RP}")
    public class AuthorizationController
    extends AbstractInitializableComponent
    Servlet compatible with the ExternalAuthentication interface that begins, by HTTP redirect, an OpenID Connect authentication request to an OpenID Connect Provider (an OAuth 2.0 Authorization Server that supports OpenID Connect).

    The servlet also consumes the HTTP authentication response from the OpenID Connect provider, decodes it, adds it the the input message context, and resumes IdP processing.

    • Constructor Detail

      • AuthorizationController

        public AuthorizationController()
        Constructor.
    • Method Detail

      • authorizationRequest

        @GetMapping("/authz")
        public void authorizationRequest​(@Nonnull
                                         javax.servlet.http.HttpServletRequest httpRequest,
                                         @Nonnull
                                         javax.servlet.http.HttpServletResponse httpResponse)
                                  throws javax.servlet.ServletException,
                                         IOException,
                                         net.shibboleth.idp.authn.ExternalAuthenticationException
        Begin an authorization request to the configured upstream OP.
        Parameters:
        httpRequest - the servlet request.
        httpResponse - the servlet response.
        Throws:
        javax.servlet.ServletException - throw if there is an error constructing an authz request.
        IOException - throw if there is an error constructing an authz request.
        net.shibboleth.idp.authn.ExternalAuthenticationException - throw if there is a general error constructing an authz request.
      • authorizationCallback

        @RequestMapping("/callback")
        public void authorizationCallback​(@Nonnull
                                          javax.servlet.http.HttpServletRequest httpRequest,
                                          @Nonnull
                                          javax.servlet.http.HttpServletResponse httpResponse)
                                   throws net.shibboleth.idp.authn.ExternalAuthenticationException,
                                          IOException
        Callback endpoint to accept the authorization response.
        Parameters:
        httpRequest - the servlet request.
        httpResponse - the servlet response.
        Throws:
        net.shibboleth.idp.authn.ExternalAuthenticationException - throw if there is an error accepting the authz response.
        IOException - throw if there is an error accepting the authz response.