Firesphere\GraphQLJWT\Queries\ValidateTokenQueryCreator
Synopsis
class ValidateTokenQueryCreator
extends QueryCreator
implements
OperationResolver
{
- // methods
- public void attributes()
- public void args()
- public void type()
- public array resolve()
- // Inherited methods from RequiresAuthenticator
- protected JWTAuthenticator|null getJWTAuthenticator()
- public $this setJWTAuthenticator()
- // Inherited methods from HeaderExtractor
- protected string|null getAuthorizationHeader()
- // Inherited methods from MemberTokenGenerator
- public string getErrorMessage()
- protected array generateResponse()
Hierarchy
Extends
- SilverStripe\GraphQL\QueryCreator
Uses
- Firesphere\GraphQLJWT\Helpers\RequiresAuthenticator
- Firesphere\GraphQLJWT\Helpers\HeaderExtractor
- Firesphere\GraphQLJWT\Helpers\MemberTokenGenerator
- SilverStripe\Core\Extensible
Implements
- SilverStripe\GraphQL\OperationResolver
Members
protected
- $jwtAuthenticator — Firesphere\GraphQLJWT\Helpers\JWTAuthenticator|null
Methods
public
Inherited from Firesphere\GraphQLJWT\Helpers\RequiresAuthenticator
protected
public
- setJWTAuthenticator() — Inject authenticator this mutation should use
Inherited from Firesphere\GraphQLJWT\Helpers\HeaderExtractor
protected
- getAuthorizationHeader() — Get JWT from request, or null if not present
Inherited from Firesphere\GraphQLJWT\Helpers\MemberTokenGenerator
protected
- generateResponse() — Generate MemberToken response
public
- getErrorMessage() — Humanise error message based on status code