public interface KeycloakAuth extends OpenIDConnectAuth
OAuth2Auth for Keycloak.| Modifier and Type | Method and Description | 
|---|---|
static OAuth2Auth | 
create(Vertx vertx,
      JsonObject config)
Create a OAuth2Auth provider for Keycloak 
 | 
static OAuth2Auth | 
create(Vertx vertx,
      JsonObject config,
      HttpClientOptions httpClientOptions)
Create a OAuth2Auth provider for Keycloak 
 | 
static OAuth2Auth | 
create(Vertx vertx,
      OAuth2FlowType flow,
      JsonObject config)
Create a OAuth2Auth provider for Keycloak 
 | 
static OAuth2Auth | 
create(Vertx vertx,
      OAuth2FlowType flow,
      JsonObject config,
      HttpClientOptions httpClientOptions)
Create a OAuth2Auth provider for Keycloak 
 | 
static Future<OAuth2Auth> | 
discover(Vertx vertx,
        OAuth2Options config)
Create a OAuth2Auth provider for OpenID Connect Discovery. 
 | 
static void | 
discover(Vertx vertx,
        OAuth2Options config,
        Handler<AsyncResult<OAuth2Auth>> handler)
Create a OAuth2Auth provider for OpenID Connect Discovery. 
 | 
static OAuth2Auth create(Vertx vertx, JsonObject config)
config - the json config file exported from Keycloak admin consolestatic OAuth2Auth create(Vertx vertx, OAuth2FlowType flow, JsonObject config)
flow - the oauth2 flow to useconfig - the json config file exported from Keycloak admin consolestatic OAuth2Auth create(Vertx vertx, JsonObject config, HttpClientOptions httpClientOptions)
config - the json config file exported from Keycloak admin consolehttpClientOptions - custom http client optionsstatic OAuth2Auth create(Vertx vertx, OAuth2FlowType flow, JsonObject config, HttpClientOptions httpClientOptions)
flow - the oauth2 flow to useconfig - the json config file exported from Keycloak admin consolehttpClientOptions - custom http client optionsstatic void discover(Vertx vertx, OAuth2Options config, Handler<AsyncResult<OAuth2Auth>> handler)
If the discovered config includes a json web key url, it will be also fetched and the JWKs will be loaded into the OAuth provider so tokens can be decoded.
discover in interface OpenIDConnectAuthvertx - the vertx instanceconfig - the initial confighandler - the instantiated Oauth2 provider instance handlerstatic Future<OAuth2Auth> discover(Vertx vertx, OAuth2Options config)
If the discovered config includes a json web key url, it will be also fetched and the JWKs will be loaded into the OAuth provider so tokens can be decoded.
discover in interface OpenIDConnectAuthvertx - the vertx instanceconfig - the initial configdiscover(Vertx, OAuth2Options, Handler)Copyright © 2021 Eclipse. All rights reserved.