Package com.adobe.granite.auth.oauth
Interface HandlerRedirect
-
@ConsumerType public interface HandlerRedirect
This interface is intended to be implemented by an application which wants, upon authentication, to redirect the user to an uri instead of login in to the local instance. A HandlerRedirect instance is bind to all specificAuthenticationHandler
s supporting the redirect handler.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getRedirectUri(HttpServletRequest request, java.lang.String userId, java.util.Map<java.lang.String,java.lang.Object> props)
Return an URI to be redirected to instead of login in to the instance
-
-
-
Method Detail
-
getRedirectUri
java.lang.String getRedirectUri(HttpServletRequest request, java.lang.String userId, java.util.Map<java.lang.String,java.lang.Object> props)
Return an URI to be redirected to instead of login in to the instance- Parameters:
request
- the request containing the information for the authenticationuserId
- provider's userIdprops
- map of all provider's properties for this userId- Returns:
- the redirect URI or
null
if the redirection must not happen.
-
-