Class DefaultUserInfoRequestEncoder

    • Constructor Detail

      • DefaultUserInfoRequestEncoder

        public DefaultUserInfoRequestEncoder()
        Constructor.
    • Method Detail

      • 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.
      • addBearerToken

        private void addBearerToken​(@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.