vertx / io.vertx.ext.auth.oauth2.providers / GoogleAuth / create

create

open static fun create(vertx: Vertx, clientId: String, clientSecret: String): OAuth2Auth

Create a OAuth2Auth provider for Google

Parameters

clientId - the client id given to you by Google

clientSecret - the client secret given to you by Google

open static fun create(vertx: Vertx, clientId: String, clientSecret: String, httpClientOptions: HttpClientOptions): OAuth2Auth

Create a OAuth2Auth provider for Google

Parameters

clientId - the client id given to you by Google

clientSecret - the client secret given to you by Google

httpClientOptions - custom http client options

open static fun create(vertx: Vertx, serviceAccountJson: JsonObject): OAuth2Auth

Create a OAuth2Auth provider for Google Service Account (Server to Server)

Parameters

serviceAccountJson - the configuration json file from your Google API page

open static fun create(vertx: Vertx, serviceAccountJson: JsonObject, httpClientOptions: HttpClientOptions): OAuth2Auth

Create a OAuth2Auth provider for Google Service Account (Server to Server)

Parameters

serviceAccountJson - the configuration json file from your Google API page

httpClientOptions - custom http client options