Interface OAuth20RequestParameterResolver


public interface OAuth20RequestParameterResolver
Since:
6.6.0
  • Field Details

    • BEAN_NAME

      static final String BEAN_NAME
      Default bean name.
      See Also:
    • LOGGER

      static final org.slf4j.Logger LOGGER
      Logger instance.
  • Method Details

    • isAuthorizedGrantTypeForService

      static boolean isAuthorizedGrantTypeForService(String grantType, org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService)
      Is authorized grant type for service?
      Parameters:
      grantType - the grant type
      registeredService - the registered service
      Returns:
      true/false
    • isAuthorizedGrantTypeForService

      boolean isAuthorizedGrantTypeForService(org.pac4j.core.context.WebContext context, org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService)
      Is authorized grant type for service.
      Parameters:
      context - the context
      registeredService - the registered service
      Returns:
      true/false
    • resolveResponseType

      OAuth20ResponseTypes resolveResponseType(org.pac4j.core.context.WebContext context)
      Resolve response type.
      Parameters:
      context - the context
      Returns:
      the response types
    • resolveGrantType

      OAuth20GrantTypes resolveGrantType(org.pac4j.core.context.WebContext context)
      Resolve grant type.
      Parameters:
      context - the context
      Returns:
      the grant types
    • resolveResponseModeType

      OAuth20ResponseModeTypes resolveResponseModeType(org.pac4j.core.context.WebContext context)
      Resolve response mode.
      Parameters:
      context - the context
      Returns:
      response mode types
    • resolveJwtRequestParameter

      <T> T resolveJwtRequestParameter(String jwtRequest, org.apereo.cas.services.RegisteredService service, String name, Class<T> clazz) throws Exception
      Resolve jwt request parameter.
      Type Parameters:
      T - the type parameter
      Parameters:
      jwtRequest - the jwt request
      service - the service
      name - the name
      clazz - the clazz
      Returns:
      the type
      Throws:
      Exception - the exception
    • resolveJwtRequestParameter

      <T> T resolveJwtRequestParameter(org.pac4j.core.context.WebContext context, String jwtRequest, String name, Class<T> clazz)
      Resolve jwt request.
      Type Parameters:
      T - the type parameter
      Parameters:
      context - the context
      jwtRequest - the jwt request
      name - the name
      clazz - the clazz
      Returns:
      the type
    • resolveRequestParameters

      Map<String,Object> resolveRequestParameters(Collection<String> attributes, org.pac4j.core.context.WebContext context)
      Resolve request parameters map.
      Parameters:
      attributes - the attributes
      context - the context
      Returns:
      the map
    • resolveRequestParameter

      Optional<String> resolveRequestParameter(org.pac4j.core.context.WebContext context, String name)
      Resolve request parameter.
      Parameters:
      context - the context
      name - the name
      Returns:
      the optional
    • resolveRequestParameter

      <T> Optional<T> resolveRequestParameter(org.pac4j.core.context.WebContext context, String name, Class<T> clazz)
      Resolve request parameter.
      Type Parameters:
      T - the type parameter
      Parameters:
      context - the context
      name - the name
      clazz - the clazz
      Returns:
      the optional
    • resolveRequestedScopes

      Collection<String> resolveRequestedScopes(org.pac4j.core.context.WebContext context)
      Resolve requested scopes.
      Parameters:
      context - the context
      Returns:
      the collection
    • isAuthorizedResponseTypeForService

      boolean isAuthorizedResponseTypeForService(org.pac4j.core.context.WebContext context, org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService)
      Is authorized response type for service.
      Parameters:
      context - the context
      registeredService - the registered service
      Returns:
      true/false
    • resolveClientIdAndClientSecret

      org.apache.commons.lang3.tuple.Pair<String,String> resolveClientIdAndClientSecret(org.pac4j.core.context.CallContext callContext)
      Resolve client id and client secret pair.
      Parameters:
      callContext - the call context
      Returns:
      the pair
    • resolveRequestScopes

      Set<String> resolveRequestScopes(org.pac4j.core.context.WebContext context)
      Resolve request scopes set.
      Parameters:
      context - the context
      Returns:
      the set
    • resolveRequestClaims

      Map<String,Map<String,Object>> resolveRequestClaims(org.pac4j.core.context.WebContext context) throws Exception
      Resolve request claims map.
      Parameters:
      context - the context
      Returns:
      the map
      Throws:
      Exception - the exception
    • resolveUserInfoRequestClaims

      Set<String> resolveUserInfoRequestClaims(org.pac4j.core.context.WebContext context) throws Exception
      Resolve user info request claims set.
      Parameters:
      context - the context
      Returns:
      the set
      Throws:
      Exception - the exception
    • resolveRequestedPromptValues

      Set<String> resolveRequestedPromptValues(org.pac4j.core.context.WebContext context)
      Resolve prompt parameter set.
      Parameters:
      context - the context
      Returns:
      the set
    • resolveSupportedPromptValues

      Set<String> resolveSupportedPromptValues(String url)
      Resolve prompt values.
      Parameters:
      url - the url
      Returns:
      the set
    • resolveSupportedPromptValues

      default Set<String> resolveSupportedPromptValues(org.pac4j.core.context.WebContext context)
      Resolve prompt values.
      Parameters:
      context - the context
      Returns:
      the set
    • isParameterOnQueryString

      boolean isParameterOnQueryString(org.pac4j.core.context.WebContext context, String name)
      Is the provided parameter name on the query string.
      Parameters:
      context - the web context
      name - the parameter name
      Returns:
      whether the paremeter name is on the query string