An auth handler that's used to handle auth by redirecting user to a custom login page.
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, $arg2 = null) : \io\vertx\jphp\ext\web\handler\AuthHandler
param $authProvider [AuthProvider] the auth service to use create($authProvider)
Create a handler
param $authProvider [AuthProvider] the auth service to use param $loginRedirectURL [string] the url to redirect the user to create($authProvider, $loginRedirectURL)
Create a handler
param $authProvider [AuthProvider] the auth service to use param $loginRedirectURL [string] the url to redirect the user to param $returnURLParam [string] the name of param used to store return url information in session create($authProvider, $loginRedirectURL, $returnURLParam)
AuthProvider
string
string
\io\vertx\jphp\ext\web\handler\AuthHandler
the handler
handle( $arg0) : void
RoutingContext
parseCredentials( $arg0, $arg1) : void
RoutingContext
callable
DEFAULT_LOGIN_REDIRECT_URL
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_RETURN_URL_PARAM
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|