Download the PHP package adt/doctrine-authenticator without Composer
On this page you can find all versions of the php package adt/doctrine-authenticator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download adt/doctrine-authenticator
More information about adt/doctrine-authenticator
Files in adt/doctrine-authenticator
Download adt/doctrine-authenticator
More information about adt/doctrine-authenticator
Files in adt/doctrine-authenticator
Vendor adt
Package doctrine-authenticator
Short Description A Doctrine authenticator for Nette framework.
License MIT
Package doctrine-authenticator
Short Description A Doctrine authenticator for Nette framework.
License MIT
Please rate this library. Is it a good library?
Informations about the package doctrine-authenticator
Doctrine Authenticator
- Allows you to use a Doctrine entity as a Nette identity
- Uses cookies instead of PHP sessions
- Saves IP address and User-Agent header for better abuse detection
- Detects an invalid token and call onInvalidToken callback to log and prevent possible abuse
- Invalidates token on different User-Agent header and IP address when fraudDetection is enabled and call onFraudDetection callback to log and prevent possible abuse
Install
Configuration
1) Neon configuration
Add new mapping via attributes like this (if you are using nettrine):
or via annotations:
2) Create a Identity entity implementing ADT\DoctrineAuthenticator\DoctrineAuthenticatorIdentity
and adjust to your needs.
3) Create a SecurityUser service extending ADT\DoctrineAuthenticator\SecurityUser
4) Create Authenticator extending ADT\DoctrineAuthenticator\DoctrineAuthenticator
and adjust methods authenticate
and getIdentity
to your needs.
5) Generate migrations
for example like this:
Usage
Just call login
on security user as you are used to:
All versions of doctrine-authenticator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
nette/security Version ^3.2
nette/http Version ^3.0
doctrine/orm Version ^2.9|^3.0
nette/security Version ^3.2
nette/http Version ^3.0
doctrine/orm Version ^2.9|^3.0
The package adt/doctrine-authenticator contains the following files
Loading the files please wait ....