dotkernel/dot-controller-plugin-authentication
DotKernel authentication controller plugin
Maintainers
Package info
github.com/dotkernel/dot-controller-plugin-authentication
pkg:composer/dotkernel/dot-controller-plugin-authentication
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0
- dotkernel/dot-authentication: ^2.3.0
- dotkernel/dot-controller: ^3.4.0
- laminas/laminas-servicemanager: ^3.21.0
Requires (Dev)
- phpunit/phpunit: ^10.3.2
- squizlabs/php_codesniffer: ^3.7
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 42f33d2cae89d079c2e408dc1fba1fc52d653907
- DotKernel Team <team.woop@dotkernel.com>
README
Authentication controller plugin.
Caution
Security-Only Maintenance Mode
This package is considered feature-complete, and is now in security-only maintenance mode.
👁 OSS Lifecycle
👁 GitHub license
👁 PHP from Packagist (specify version)
Installation
Run the following command
$ composer require dotkernel/dot-controller-plugin-authentication
This will also install package dotkernel/dot-controller and dotkernel/dot-authentication as dependencies
Enable the module by merging the ConfiProvider output to your application's configuration, to register the services defined by this module.
Usage
In any controller, you can access this plugin by calling
$this->authentication()->...
This plugin defines 2 methods you can use in your controllers to check for the currently authenticated identity.
$this->authentication()->hasIdentity()
Returns a boolean value indicating if there is an authenticated identity or a guest identity
$this->authentication()->getIdentity()
Returns the current identity as an hydrated object, as defined in the authentication module
