Firesphere\GraphQLJWT\Authentication\JWTAuthenticationHandler
Class JWTAuthenticationHandler
Synopsis
class JWTAuthenticationHandler
implements
AuthenticationHandler
{
- // methods
- public null|Member authenticateRequest()
- public void logIn()
- public void logOut()
- // Inherited methods from HeaderExtractor
- protected string|null getAuthorizationHeader()
- // Inherited methods from RequiresAuthenticator
- protected JWTAuthenticator|null getJWTAuthenticator()
- public $this setJWTAuthenticator()
Hierarchy
Uses
- Firesphere\GraphQLJWT\Helpers\HeaderExtractor
- Firesphere\GraphQLJWT\Helpers\RequiresAuthenticator
- SilverStripe\Core\Injector\Injectable
Implements
- SilverStripe\Security\AuthenticationHandler
Members
protected
- $jwtAuthenticator — Firesphere\GraphQLJWT\Helpers\JWTAuthenticator|null
Methods
public
- authenticateRequest()
- logIn() — Authenticate on every run, based on the header, not relying on sessions or cookies JSON Web Tokens are stateless
- logOut()
Inherited from Firesphere\GraphQLJWT\Helpers\HeaderExtractor
protected
- getAuthorizationHeader() — Get JWT from request, or null if not present
Inherited from Firesphere\GraphQLJWT\Helpers\RequiresAuthenticator
protected
public
- setJWTAuthenticator() — Inject authenticator this mutation should use