RequestAuthenticationHandler
class RequestAuthenticationHandler implements AuthenticationHandler
Core authentication handler / store
Methods
Set an associative array of handlers
Given the current request, authenticate the request for non-session authorization (outside the CMS).
Log into the identity-store handlers attached to this request filter
Log out of all the identity-store handlers attached to this request filter
Details
at line 33
$this
setHandlers(array $handlers)
Set an associative array of handlers
at line 39
Member|null
authenticateRequest(HTTPRequest $request)
Given the current request, authenticate the request for non-session authorization (outside the CMS).
The Member returned from this method will be provided to the Manager for use in the OperationResolver context in place of the current CMS member.
Authenticators can be given a priority. In this case, the authenticator with the highest priority will be returned first. If not provided, it will default to a low number.
An example for configuring the BasicAuthAuthenticator:
SilverStripe\Security\Security:
authentication_handlers:
- SilverStripe\Security\BasicAuthentionHandler
at line 58
logIn(Member $member, Boolean $persistent = false, HTTPRequest $request = null)
Log into the identity-store handlers attached to this request filter
at line 75
logOut(HTTPRequest $request = null)
Log out of all the identity-store handlers attached to this request filter