Riddler7\Oauth2GraphQL\Helpers\OauthContext
Synopsis
trait OauthContext
{
- // members
- protected static string $oauthClientKey = 'oauthClientIdentifier';
- protected static string $oauthScopesKey = 'oauthScopes';
- // methods
- public bool hasOauthClient()
- public DataObject getOauthClient()
- public bool hasScope()
- public bool hasScopes()
Hierarchy
Members
protected
- $oauthClientKey
—
string
Name of the oauth client id in the graphql context. - $oauthScopesKey
—
string
Name of the oauth scopes in the graphql context.
Methods
public
- getOauthClient() — Return the model for the Oauth Client.
- hasOauthClient() — Determine if the scope has a valid client.
- hasScope() — Determine whether the a scope has been granted.
- hasScopes() — Determnie whether all the scopes have been granted.