Interface OAuth20AuthorizationResponseBuilder
-
public interface OAuth20AuthorizationResponseBuilderThis isOAuth20AuthorizationResponseBuilderthat attempts to build the callback url with the access token, refresh token, etc as part of the authorization phase. Individual subclasses need to decide how to prepare the uri, and they are typically mapped to response types.- Since:
- 5.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.web.servlet.ModelAndViewbuild(org.pac4j.core.context.WebContext context, java.lang.String clientId, AccessTokenRequestDataHolder holder)Build.org.springframework.web.servlet.ModelAndViewbuild(org.pac4j.core.context.WebContext context, org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService, java.lang.String redirectUrl, java.util.Map<java.lang.String,java.lang.String> parameters)Build response model and view.booleansupports(org.pac4j.core.context.WebContext context)Supports request?
-
-
-
Method Detail
-
build
org.springframework.web.servlet.ModelAndView build(org.pac4j.core.context.WebContext context, org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService, java.lang.String redirectUrl, java.util.Map<java.lang.String,java.lang.String> parameters) throws java.lang.ExceptionBuild response model and view.- Parameters:
context- the contextregisteredService- the registered serviceredirectUrl- the redirect urlparameters- the parameters- Returns:
- the model and view
- Throws:
java.lang.Exception- the exception
-
build
org.springframework.web.servlet.ModelAndView build(org.pac4j.core.context.WebContext context, java.lang.String clientId, AccessTokenRequestDataHolder holder)Build.- Parameters:
context- the contextclientId- the client idholder- the holder- Returns:
- the view response
-
supports
boolean supports(org.pac4j.core.context.WebContext context)
Supports request?- Parameters:
context- the context- Returns:
- true/false
-
-