Class LoginHintHook

    • Constructor Detail

      • LoginHintHook

        public LoginHintHook()
    • Method Detail

      • beforeAuthorizeHandling

        public void beforeAuthorizeHandling​(OAuth2Request o2request,
                                            org.restlet.Request request,
                                            org.restlet.Response response)
        Adds the login_hint value to cookie.
        Specified by:
        beforeAuthorizeHandling in interface AuthorizeRequestHook
        Parameters:
        o2request - The current OAuth2 request.
        request - The restlet request.
        response - The restlet response.
      • afterAuthorizeSuccess

        public void afterAuthorizeSuccess​(OAuth2Request o2request,
                                          org.restlet.Request request,
                                          org.restlet.Response response)
        Once we're returning an auth code we can remove the login hint cookie.
        Specified by:
        afterAuthorizeSuccess in interface AuthorizeRequestHook
        Parameters:
        o2request - The current OAuth2 request.
        request - The restlet request.
        response - The restlet response.
      • afterTokenHandling

        public void afterTokenHandling​(OAuth2Request o2request,
                                       org.restlet.Request request,
                                       org.restlet.Response response)
        Authentication has completed - remove the cookie.
        Specified by:
        afterTokenHandling in interface TokenRequestHook
        Parameters:
        o2request - The current OAuth2 request.
        request - The restlet request.
        response - The restlet response.