Interface OAuth2AuthorizedClientProvider

    • Method Detail

      • authorize

        @Nullable
        OAuth2AuthorizedClient authorize​(OAuth2AuthorizationContext context)
        Attempt to authorize (or re-authorize) the client in the provided context. Implementations must return null if authorization is not supported for the specified client, e.g. the provider doesn't support the authorization grant type configured for the client.
        Parameters:
        context - the context that holds authorization-specific state for the client
        Returns:
        the OAuth2AuthorizedClient or null if authorization is not supported for the specified client