Class DefaultUserInfoRequestEncoder

    • Constructor Detail

      • DefaultUserInfoRequestEncoder

        public DefaultUserInfoRequestEncoder()
        Constructor.
    • Method Detail

      • setHttpMethodLookupStrategy

        public void setHttpMethodLookupStrategy​(Function<ProfileRequestContext,​net.shibboleth.oidc.profile.oauth2.config.OAuth2AuthorizationProfileConfiguration.HttpRequestMethod> strategy)
        Set the strategy used to lookup the HTTP method to use in this request.
        Parameters:
        strategy - the strategy
      • doApply

        public org.apache.http.client.methods.HttpUriRequest doApply​(@Nonnull
                                                                     ProfileRequestContext profileRequestContext)
        Description copied from class: AbstractRequestEncoderFunction
        Encode a HttpUriRequest from the given context. Implementations should override this method.
        Specified by:
        doApply in class AbstractRequestEncoderFunction
        Parameters:
        profileRequestContext - the profile request context.
        Returns:
        the request to execute.
      • addBearerTokenToPost

        private void addBearerTokenToPost​(@Nonnull
                                          org.apache.http.client.methods.RequestBuilder rb,
                                          @Nonnull
                                          AccessTokenResponseContext responseCtx)
                                   throws OIDCRPException
        Add the bearer token to the 'access_token' parameter, used when issuing HTTP POST requests.
        Parameters:
        rb - the request builder to use.
        responseCtx - the response context to find the access_token from.
        Throws:
        OIDCRPException - if there is an issue adding the bearer token to the 'access_token' parameter.
      • addBearerTokenToGet

        private void addBearerTokenToGet​(@Nonnull
                                         org.apache.http.client.methods.RequestBuilder rb,
                                         @Nonnull
                                         AccessTokenResponseContext responseCtx)
                                  throws OIDCRPException
        Add the bearer token to the Authorization header, used when issuing HTTP GET requests.
        Parameters:
        rb - the request builder to use.
        responseCtx - the response context to find the access_token from.
        Throws:
        OIDCRPException - if there is an issue adding the bearer token to the Authorization header.