AzureADAuth

Simplified factory to create an for Azure AD.

package

Default

Methods

__construct

__construct() 

Create a OAuth2Auth provider for Microsoft Azure Active Directory

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

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)

Arguments

$arg0

Vertx

$arg1

string

$arg2

string

$arg3

string

$arg4

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