Class LoginHintHook
- java.lang.Object
-
- org.forgerock.openidconnect.restlet.LoginHintHook
-
- All Implemented Interfaces:
AuthorizeRequestHook,TokenRequestHook
public class LoginHintHook extends Object implements AuthorizeRequestHook, TokenRequestHook
Hooks into the authorize and token request to set/unset a cookie containing the login_hint OIDC parameter, which may be used by the authentication chain.
-
-
Constructor Summary
Constructors Constructor Description LoginHintHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterAuthorizeSuccess(OAuth2Request o2request, org.restlet.Request request, org.restlet.Response response)Once we're returning an auth code we can remove the login hint cookie.voidafterTokenHandling(OAuth2Request o2request, org.restlet.Request request, org.restlet.Response response)Authentication has completed - remove the cookie.voidbeforeAuthorizeHandling(OAuth2Request o2request, org.restlet.Request request, org.restlet.Response response)Adds the login_hint value to cookie.
-
-
-
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:
beforeAuthorizeHandlingin interfaceAuthorizeRequestHook- 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:
afterAuthorizeSuccessin interfaceAuthorizeRequestHook- 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:
afterTokenHandlingin interfaceTokenRequestHook- Parameters:
o2request- The current OAuth2 request.request- The restlet request.response- The restlet response.
-
-