BaseAuthenticationBackend
in package
AbstractYes
This is the base class for all authentication backends.
All authentication backends must extend this class and implement the authenticate method.
The authenticate method should return a ContextUserObject object.
The ContextUserObject object should have the following properties:
- user: object - The user object
- authenticated: bool - True if the user is authenticated, false otherwise
- permissions: array|null - The user's permissions
- authExtra: array|null - Any other data about the logged-in session holder, can be used to hold user domain, user role etc
Tags
Table of Contents
Properties
Methods
- authenticate() : ContextUserObject|null
Properties
$request
public
Request
$request
- The request object
Methods
authenticate()
public
abstract authenticate(Request $request) : ContextUserObject|null
Parameters
- $request : Request