Sminnee\ApiKey\GraphQL\ApiKeyAuthenticator
Provides the ability to authenticate as a SilverStripe member in external GraphQL requests by using the API key header.
Synopsis
class ApiKeyAuthenticator
implements
AuthenticatorInterface
{
- // methods
- public void authenticate()
- public void isApplicable()
- protected string|false getApiKeyHeader()
Hierarchy
Implements
- SilverStripe\GraphQL\Auth\AuthenticatorInterface
Methods
protected
- getApiKeyHeader() — Look up the header name from configuration, and return it or false from the given request