public interface GoogleAuth extends OpenIDConnectAuth
OAuth2Auth
for Google.Modifier and Type | Method and Description |
---|---|
static OAuth2Auth |
create(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject serviceAccountJson)
Create a OAuth2Auth provider for Google Service Account (Server to Server)
|
static OAuth2Auth |
create(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject serviceAccountJson,
io.vertx.core.http.HttpClientOptions httpClientOptions)
Create a OAuth2Auth provider for Google Service Account (Server to Server)
|
static OAuth2Auth |
create(io.vertx.core.Vertx vertx,
String clientId,
String clientSecret)
Create a OAuth2Auth provider for Google
|
static OAuth2Auth |
create(io.vertx.core.Vertx vertx,
String clientId,
String clientSecret,
io.vertx.core.http.HttpClientOptions httpClientOptions)
Create a OAuth2Auth provider for Google
|
static void |
discover(io.vertx.core.Vertx vertx,
OAuth2ClientOptions config,
io.vertx.core.Handler<io.vertx.core.AsyncResult<OAuth2Auth>> handler)
Create a OAuth2Auth provider for OpenID Connect Discovery.
|
static OAuth2Auth create(io.vertx.core.Vertx vertx, String clientId, String clientSecret)
clientId
- the client id given to you by GoogleclientSecret
- the client secret given to you by Googlestatic OAuth2Auth create(io.vertx.core.Vertx vertx, String clientId, String clientSecret, io.vertx.core.http.HttpClientOptions httpClientOptions)
clientId
- the client id given to you by GoogleclientSecret
- the client secret given to you by GooglehttpClientOptions
- custom http client optionsstatic void discover(io.vertx.core.Vertx vertx, OAuth2ClientOptions config, io.vertx.core.Handler<io.vertx.core.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 OAuth2Auth create(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject serviceAccountJson)
serviceAccountJson
- the configuration json file from your Google API pagestatic OAuth2Auth create(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject serviceAccountJson, io.vertx.core.http.HttpClientOptions httpClientOptions)
serviceAccountJson
- the configuration json file from your Google API pagehttpClientOptions
- custom http client optionsCopyright © 2020 Eclipse. All rights reserved.