Download the PHP package bleicker/authentication without Composer
On this page you can find all versions of the php package bleicker/authentication. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package authentication
Usage
TokenManager
The AuthenticationManager requires a TokenManager. Just register your own or use the default TokenManager:
ObjectManager::register(TokenManagerInterface::class, new TokenManager());
AuthenticationManager
Creating AuthenticationManager Instance:
$authenticationManager = new AuthenticationManager();
Register a prototype token
Authentication state lives as long as runtime.
$authenticationManager->getTokenManager()->registerPrototypeToken(MyPrototypeToken::class, new MyPrototypeToken());
Register a session token
Authentication state will exists along the runtime.
$authenticationManager->getTokenManager()->registerSessionToken(MySessioinToken::class, new MySessioinToken());
Getting authentication state of a Token
$authenticationManager->getTokenManager()->getToken(MyPrototypeToken::class)->status();
Run Authentication
Run the authentication. In this case any registered Token tries to authenticate.
$authenticationManager->run();All versions of authentication with dependencies
PHP Build Version
Package Version
Requires
bleicker/token Version
2.2.*
bleicker/session Version 1.0.*
doctrine/collections Version ~1.2
bleicker/session Version 1.0.*
doctrine/collections Version ~1.2
The package bleicker/authentication contains the following files
Loading the files please wait ...