public interface IBMCloudAuth extends OpenIDConnectAuth
OAuth2Auth
for IBM Cloud.Modifier and Type | Method and Description |
---|---|
static OAuth2Auth |
create(Vertx vertx,
String region,
String clientId,
String clientSecret,
String guid)
Create a OAuth2Auth provider for IBM Cloud
|
static OAuth2Auth |
create(Vertx vertx,
String region,
String clientId,
String clientSecret,
String guid,
HttpClientOptions httpClientOptions)
Create a OAuth2Auth provider for IBM Cloud
|
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, String region, String clientId, String clientSecret, String guid)
region
- the region to useclientId
- the client id given to you by IBM CloudclientSecret
- the client secret given to you by IBM Cloudguid
- the guid of your application given to you by IBM Cloudstatic OAuth2Auth create(Vertx vertx, String region, String clientId, String clientSecret, String guid, HttpClientOptions httpClientOptions)
region
- the region to useclientId
- the client id given to you by IBM CloudclientSecret
- the client secret given to you by IBM Cloudguid
- the guid of your application given to you by IBM CloudhttpClientOptions
- 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 OpenIDConnectAuth
vertx
- 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 OpenIDConnectAuth
vertx
- the vertx instanceconfig
- the initial configdiscover(Vertx, OAuth2Options, Handler)
Copyright © 2021 Eclipse. All rights reserved.