An auth handler that provides OAuth2 Authentication support. This handler is suitable for AuthCode flows.
package |
Default |
---|
__construct()
addAuthorities( $arg0) : $this
array
$this
a reference to this, so the API can be used fluently
addAuthority( $arg0) : $this
string
$this
a reference to this, so the API can be used fluently
create( $arg0, $arg1 = null) : \io\vertx\jphp\ext\web\handler\OAuth2AuthHandler
Most providers will not look to the redirect url but always redirect to the preconfigured callback. So this factory does not provide a callback url.
param $authProvider [OAuth2Auth] the auth provider to use create($authProvider)
Create a OAuth2 auth handler with host pinning
param $authProvider [OAuth2Auth] the auth provider to use
param $callbackURL [string] the callback URL you entered in your provider admin console, usually it should be something like: https://myserver:8888/callback
create($authProvider, $callbackURL)
OAuth2Auth
string
\io\vertx\jphp\ext\web\handler\OAuth2AuthHandler
the auth handler
extraParams( $arg0) : $this
array
$this
self
handle( $arg0) : void
RoutingContext
parseCredentials( $arg0, $arg1) : void
RoutingContext
callable
setupCallback( $arg0) : $this
Route
$this
self