Interface DynamicClientRegistrationPlugin

  • All Superinterfaces:
    ConfigurablePlugin, DescribablePlugin, Plugin

    public interface DynamicClientRegistrationPlugin
    extends Plugin

    This interface defines the methods that PingFederate calls when performing policy processing for OAuth 2.0 Dynamic Client Registration.

    See ConfigurablePlugin for methods that need to be implemented to handle plugin configuration.

    Since:
    9.0
    • Field Detail

      • IN_PARAMETER_NAME_REQUEST_BODY

        static final String IN_PARAMETER_NAME_REQUEST_BODY
        The input parameter name for the HTTP request body in the "inParameters" map. The value is a String.
        See Also:
        Constant Field Values
      • IN_PARAMETER_NAME_REQUEST_CONTENT_TYPE

        static final String IN_PARAMETER_NAME_REQUEST_CONTENT_TYPE
        The input parameter name for the HTTP request content type in the "inParameters" map. The value is a String.
        See Also:
        Constant Field Values
    • Method Detail

      • processPlugin

        default void processPlugin​(javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response,
                                   DynamicClient dynamicClient,
                                   Map<String,​Object> inParameters)
                            throws ClientRegistrationException
        This method is invoked in policy processing of Dynamic Client Registration.
        Parameters:
        request - HttpServletRequest object that can be used to read cookies, parameters and headers. It may be used to find out more about the request such as the full URL the request was made to. Accessing the HttpSession from the request is not recommended. SessionStateSupport may be used as an alternative.
        response - HttpServletResponse object.
        dynamicClient - An object representing the client to be registered. Implementations can modify the values within this object to manipulate the client before it is registered.
        inParameters - A map containing a set of input parameters. Available input parameters are prefixed with IN_PARAMETER_NAME_* in this interface.
        Throws:
        ClientRegistrationException - An exception indicating an unsuccessful client registration.
        Since:
        9.0
      • processPluginGet

        default void processPluginGet​(javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.http.HttpServletResponse response,
                                      DynamicClient existingDynamicClient,
                                      Map<String,​Object> inParameters)
                               throws ClientRegistrationException
        This method is invoked in policy processing of Dynamic Client Registration Management get.
        Parameters:
        request - HttpServletRequest object that can be used to read cookies, parameters and headers. It may be used to find out more about the request such as the full URL the request was made to. Accessing the HttpSession from the request is not recommended. SessionStateSupport may be used as an alternative.
        response - HttpServletResponse object.
        existingDynamicClient - An object representing the client as it exists at the time of the get request.
        inParameters - A map containing a set of input parameters. Available input parameters are prefixed with IN_PARAMETER_NAME_* in this interface.
        Throws:
        ClientRegistrationException - An exception indicating an unsuccessful client get.
        Since:
        10.1
      • processPluginUpdate

        default void processPluginUpdate​(javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response,
                                         DynamicClient dynamicClient,
                                         DynamicClient existingDynamicClient,
                                         Map<String,​Object> inParameters)
                                  throws ClientRegistrationException
        This method is invoked in policy processing of Dynamic Client Registration Management update.
        Parameters:
        request - HttpServletRequest object that can be used to read cookies, parameters and headers. It may be used to find out more about the request such as the full URL the request was made to. Accessing the HttpSession from the request is not recommended. SessionStateSupport may be used as an alternative.
        response - HttpServletResponse object.
        dynamicClient - An object representing the client to be updated. Implementations can modify the values within this object to manipulate the client before it is updated.
        existingDynamicClient - An object representing the client as it exists before the update request. Implementations can use the values within this object to manipulate the dynamicClient before it is updated.
        inParameters - A map containing a set of input parameters. Available input parameters are prefixed with IN_PARAMETER_NAME_* in this interface.
        Throws:
        ClientRegistrationException - An exception indicating an unsuccessful client update.
        Since:
        10.1
      • processPluginDelete

        default void processPluginDelete​(javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response,
                                         DynamicClient existingDynamicClient,
                                         Map<String,​Object> inParameters)
                                  throws ClientRegistrationException
        This method is invoked in policy processing of Dynamic Client Registration Management delete.
        Parameters:
        request - HttpServletRequest object that can be used to read cookies, parameters and headers. It may be used to find out more about the request such as the full URL the request was made to. Accessing the HttpSession from the request is not recommended. SessionStateSupport may be used as an alternative.
        response - HttpServletResponse object.
        existingDynamicClient - An object representing the client as it exists before the delete request. Implementations can use the values within this object to do preprocessing logic before the delete.
        inParameters - A map containing a set of input parameters. Available input parameters are prefixed with IN_PARAMETER_NAME_* in this interface.
        Throws:
        ClientRegistrationException - An exception indicating an unsuccessful client delete.
        Since:
        10.1