SilverStripe\GraphQL\Auth\AuthenticatorInterface::authenticate
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: <code> SilverStripe\GraphQL: authenticators: - class: SilverStripe\GraphQL\Auth\BasicAuthAuthenticator priority: 10 </code>
Signature
public function authenticate(HTTPRequest
$request )
Parameters
$request
— SilverStripe\Control\HTTPRequest- The current HTTP request
Returns
- Member
- If authentication is successful
Errors/Exceptions
-
ValidationException
- If authentication fails