Interface DiscordOAuth2SuccessHandler

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface DiscordOAuth2SuccessHandler
    An interface to work with authorized users within a DiscordOAuth2Server. Allows retrieving details once a user completes an authorization code grant request.
    • Method Detail

      • onAuthSuccess

        Mono<?> onAuthSuccess​(DiscordOAuth2Client client,
                              String sessionId)
        Invoked once a user completes an authorization code grant request for your OAuth2 application.
        Parameters:
        client - the authorized user client registration, allowing to perform API request on behalf of this user
        sessionId - a session identifier used by the server
        Returns:
        a Mono signaling completion of the success handler, errors thrown are logged and discarded by the server