RequestAuthenticationHandler
class RequestAuthenticationHandler implements AuthenticationHandler (View source)
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
$this
setHandlers(array $handlers)
Set an associative array of handlers
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
logIn(Member $member, bool $persistent = false, HTTPRequest $request = null)
Log into the identity-store handlers attached to this request filter
logOut(HTTPRequest $request = null)
Log out of all the identity-store handlers attached to this request filter