Package com.adobe.granite.auth.oauth
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 specific
AuthenticationHandlers supporting the redirect handler.-
Method Summary
Modifier and TypeMethodDescriptiongetRedirectUri(HttpServletRequest request, String userId, Map<String, Object> props) Return an URI to be redirected to instead of login in to the instance
-
Method Details
-
getRedirectUri
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
nullif the redirection must not happen.
-