Class DuoOIDCAuthnController

    • Constructor Detail

      • DuoOIDCAuthnController

        public DuoOIDCAuthnController()
        Constructor.
    • Method Detail

      • authorizationRequest

        @GetMapping("/authorize")
        public void authorizationRequest​(@Nonnull
                                         javax.servlet.http.HttpServletRequest httpRequest,
                                         @Nonnull
                                         javax.servlet.http.HttpServletResponse httpResponse)
                                  throws ExternalAuthenticationException,
                                         IOException
        Start the Duo ODIC authorization code flow. The SWF execution key is encoded in the state parameter so it can be extracted on return from Duo.
        Parameters:
        httpRequest - servlet request
        httpResponse - servlet response
        Throws:
        ExternalAuthenticationException - if an error occurs
        IOException - if an I/O error occurs
      • authorizationCallback

        @GetMapping("/duo-callback")
        public void authorizationCallback​(@Nonnull
                                          javax.servlet.http.HttpServletRequest httpRequest,
                                          @Nonnull
                                          javax.servlet.http.HttpServletResponse httpResponse)
                                   throws ExternalAuthenticationException,
                                          IOException
        The redirect_uri endpoint for accepting an authorization code and resuming the flow execution.
        Parameters:
        httpRequest - servlet request
        httpResponse - servlet response
        Throws:
        ExternalAuthenticationException - if an error occurs
        IOException - if an I/O error occurs