SilverStripe\GraphQL\Auth\AuthenticatorInterface
An AuthenticatorInterface is responsible for authenticating against a SilverStripe CMS Member from the given request data.
It should return the authenticated Member if successful so that GraphQL can
use it in place of the Member from the session for permission checks such as DataObject::canView.
Synopsis
interface AuthenticatorInterface
{
- // methods
- public Member authenticate()
- public bool isApplicable()
Methods
public
- authenticate() — Given the current request, authenticate the request for non-session authorization (outside the CMS).
- isApplicable() — Determine if this authenticator is applicable to the current request