public class OAuth20ConsentApprovalViewResolver extends java.lang.Object implements ConsentApprovalViewResolver
OAuth20ConsentApprovalViewResolver.| Modifier and Type | Field and Description |
|---|---|
protected org.apereo.cas.configuration.CasConfigurationProperties |
casProperties
CAS settings.
|
| Constructor and Description |
|---|
OAuth20ConsentApprovalViewResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.servlet.ModelAndView |
getApprovalModelAndView(java.util.Map<java.lang.String,java.lang.Object> model)
Gets approval model and view.
|
protected java.lang.String |
getApprovalViewName()
Gets approval view name.
|
protected boolean |
isConsentApprovalBypassed(org.pac4j.core.context.J2EContext context,
org.apereo.cas.support.oauth.services.OAuthRegisteredService service)
Is consent approval bypassed?
|
protected void |
prepareApprovalViewModel(java.util.Map<java.lang.String,java.lang.Object> model,
org.pac4j.core.context.J2EContext ctx,
org.apereo.cas.support.oauth.services.OAuthRegisteredService svc)
Prepare approval view model.
|
protected org.springframework.web.servlet.ModelAndView |
redirectToApproveView(org.pac4j.core.context.J2EContext ctx,
org.apereo.cas.support.oauth.services.OAuthRegisteredService svc)
Redirect to approve view model and view.
|
org.springframework.web.servlet.ModelAndView |
resolve(org.pac4j.core.context.J2EContext context,
org.apereo.cas.support.oauth.services.OAuthRegisteredService service)
Resolve model and view.
|
protected final org.apereo.cas.configuration.CasConfigurationProperties casProperties
public org.springframework.web.servlet.ModelAndView resolve(org.pac4j.core.context.J2EContext context,
org.apereo.cas.support.oauth.services.OAuthRegisteredService service)
ConsentApprovalViewResolverresolve in interface ConsentApprovalViewResolvercontext - the contextservice - the serviceprotected boolean isConsentApprovalBypassed(org.pac4j.core.context.J2EContext context,
org.apereo.cas.support.oauth.services.OAuthRegisteredService service)
context - the contextservice - the serviceprotected org.springframework.web.servlet.ModelAndView redirectToApproveView(org.pac4j.core.context.J2EContext ctx,
org.apereo.cas.support.oauth.services.OAuthRegisteredService svc)
ctx - the ctxsvc - the svcprotected org.springframework.web.servlet.ModelAndView getApprovalModelAndView(java.util.Map<java.lang.String,java.lang.Object> model)
model - the modelprotected java.lang.String getApprovalViewName()
protected void prepareApprovalViewModel(java.util.Map<java.lang.String,java.lang.Object> model,
org.pac4j.core.context.J2EContext ctx,
org.apereo.cas.support.oauth.services.OAuthRegisteredService svc)
model - the modelctx - the ctxsvc - the svc