Simplified factory to create an @see \io\vertx\jphp\ext\auth\oauth2\OAuth2Auth for Google.
package |
Default |
---|
__construct()
create( $arg0, $arg1, $arg2 = null, $arg3 = null) : \io\vertx\jphp\ext\auth\oauth2\OAuth2Auth
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)
Vertx
string | array
string | array | HttpClientOptions
array | HttpClientOptions
\io\vertx\jphp\ext\auth\oauth2\OAuth2Auth
discover( $arg0, $arg1, $arg2) : void
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.
Vertx
array | OAuth2ClientOptions
callable