Simplified factory to create an for Azure AD.
package |
Default |
---|
__construct()
create( $arg0, $arg1, $arg2, $arg3, $arg4 = null) : \io\vertx\jphp\ext\auth\oauth2\OAuth2Auth
param $vertx [Vertx] param $clientId [string] the client id given to you by Azure param $clientSecret [string] the client secret given to you by Azure param $guid [string] the guid of your application given to you by Azure create($vertx, $clientId, $clientSecret, $guid)
Create a OAuth2Auth provider for Microsoft Azure Active Directory
param $vertx [Vertx] param $clientId [string] the client id given to you by Azure param $clientSecret [string] the client secret given to you by Azure param $guid [string] the guid of your application given to you by Azure param $httpClientOptions [HttpClientOptions | array] custom http client options create($vertx, $clientId, $clientSecret, $guid, $httpClientOptions)
Vertx
string
string
string
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