Class KeycloakOAuth2

  • All Implemented Interfaces:
    Authenticator

    public class KeycloakOAuth2
    extends AbstractOAuth2Base
    implements Authenticator
    Authenticator for Keycloak OAuth2.
    • flowType: OAuth2 flow type
    • username: if password flow
    • password: if password flow
    Paste JSON config from your Keycloak realm.
    Author:
    Marc Savy <marc@rhymewithgravy.com>
    See Also:
    OAuth2FlowType
    • Constructor Detail

      • KeycloakOAuth2

        public KeycloakOAuth2()
    • Method Detail

      • authenticate

        public Authenticator authenticate​(io.vertx.core.Vertx vertx,
                                          Map<String,​String> config,
                                          io.vertx.core.MultiMap headerMap,
                                          io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
        Description copied from interface: Authenticator
        Authenticate the call.
        Specified by:
        authenticate in interface Authenticator
        headerMap - header(s) may be set by the authenticator.
        resultHandler - invoked with result of the authentication.
        Returns:
        fluent