Interface WebAuthRequestCollection.BaseWebAuthResponseHandler

    • Method Detail

      • getIdentityProvider

        @Nonnull
        java.util.Optional<java.lang.String> getIdentityProvider​(@Nonnull
                                                                 RequestContext requestContext)
        Parameters:
        requestContext - the RequestContext for the HTTP Request carrying the web auth response
        Returns:
        the Identity Provider which should be used to process the web auth response
      • getSecurityZones

        @Nonnull
        com.google.common.collect.ImmutableCollection<java.lang.String> getSecurityZones​(@Nonnull
                                                                                         RequestContext requestContext)
        Parameters:
        requestContext - the RequestContext for the HTTP Request carrying the web auth response
        Returns:
        the security zones for the current request context
      • doHandle

        @Nonnull
        java.net.URI doHandle​(@Nonnull
                              RequestContext requestContext,
                              @Nonnull
                              WebAuthUserContext webAuthUserContext)
                       throws java.lang.Exception
        Handle the web auth response.
        Parameters:
        requestContext - the RequestContext for the HTTP Request carrying the web auth response
        webAuthUserContext - the WebAuthUserContext containing the WebAuthUser, granted security levels, and security zones
        Returns:
        the URI to which the user should be redirected after handling the web auth response
        Throws:
        java.lang.Exception - if there is an unexpected problem handling the web auth response
      • shouldRotateSessionId

        default boolean shouldRotateSessionId()