GoogleAuth

Simplified factory to create an @see \io\vertx\jphp\ext\auth\oauth2\OAuth2Auth for Google.

package

Default

Methods

__construct

__construct() 

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

create( $arg0,  $arg1,  $arg2 = null,  $arg3 = null) : \io\vertx\jphp\ext\auth\oauth2\OAuth2Auth
static

param $vertx [Vertx] param $serviceAccountJson [array] the configuration json file from your Google API page create($vertx, $serviceAccountJson)

Create a OAuth2Auth provider for Google

param $vertx [Vertx] param $clientId [string] the client id given to you by Google param $clientSecret [string] the client secret given to you by Google create($vertx, $clientId, $clientSecret)

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

param $vertx [Vertx] param $serviceAccountJson [array] the configuration json file from your Google API page param $httpClientOptions [HttpClientOptions | array] custom http client options create($vertx, $serviceAccountJson, $httpClientOptions)

Create a OAuth2Auth provider for Google

param $vertx [Vertx] param $clientId [string] the client id given to you by Google param $clientSecret [string] the client secret given to you by Google param $httpClientOptions [HttpClientOptions | array] custom http client options create($vertx, $clientId, $clientSecret, $httpClientOptions)

Arguments

$arg0

Vertx

$arg1

string | array

$arg2

string | array | HttpClientOptions

$arg3

array | HttpClientOptions

Response

\io\vertx\jphp\ext\auth\oauth2\OAuth2Auth

Create a OAuth2Auth provider for OpenID Connect Discovery. The discovery will use the default site in the configuration options and attempt to load the well known descriptor. If a site is provided (for example when running on a custom instance) that site will be used to do the lookup.

discover( $arg0,  $arg1,  $arg2) : void
static

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.

Arguments

$arg0

Vertx

$arg1

array | OAuth2ClientOptions

$arg2

callable