Simplified factory to create an for Keycloak.
package |
Default |
---|
__construct()
create( $arg0, $arg1, $arg2 = null, $arg3 = null) : \io\vertx\jphp\ext\auth\oauth2\OAuth2Auth
param $vertx [Vertx] param $config [array] the json config file exported from Keycloak admin console create($vertx, $config)
Create a OAuth2Auth provider for Keycloak
param $vertx [Vertx] param $flow [string] the oauth2 flow to use param $config [array] the json config file exported from Keycloak admin console create($vertx, $flow, $config)
Create a OAuth2Auth provider for Keycloak
param $vertx [Vertx] param $config [array] the json config file exported from Keycloak admin console param $httpClientOptions [HttpClientOptions | array] custom http client options create($vertx, $config, $httpClientOptions)
Create a OAuth2Auth provider for Keycloak
param $vertx [Vertx] param $flow [string] the oauth2 flow to use param $config [array] the json config file exported from Keycloak admin console param $httpClientOptions [HttpClientOptions | array] custom http client options create($vertx, $flow, $config, $httpClientOptions)
Vertx
string | array
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