Interface OAuth20AuthorizationResponseBuilder


  • public interface OAuth20AuthorizationResponseBuilder
    This is OAuth20AuthorizationResponseBuilder that 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.ModelAndView build​(org.pac4j.core.context.WebContext context, java.lang.String clientId, AccessTokenRequestDataHolder holder)
      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)
      Build response model and view.
      boolean supports​(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.Exception
        Build response model and view.
        Parameters:
        context - the context
        registeredService - the registered service
        redirectUrl - the redirect url
        parameters - 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 context
        clientId - the client id
        holder - the holder
        Returns:
        the view response
      • supports

        boolean supports​(org.pac4j.core.context.WebContext context)
        Supports request?
        Parameters:
        context - the context
        Returns:
        true/false