Skip to content

Client ​

Type
Class
Namespace
craft\oauth
Inherits
craft\oauth\Client
Implements
League\OAuth2\Server\Entities\ClientEntityInterface
Uses traits
League\OAuth2\Server\Entities\Traits\ClientTrait, League\OAuth2\Server\Entities\Traits\EntityTrait

View source

Public Properties ​

PropertyDescription
scopesstring[], null – The scopes the client may request, or null for any scope, as in Passport.

scopes ​

Type
string[], null
Default value
null

The scopes the client may request, or null for any scope, as in Passport.

View source

Public Methods ​

MethodDescription
__construct()
hasScope()Whether the client may request a scope, per its scopes, as Passport’s Client::hasScope() checks.
supportsGrantType()Whether the client may use a grant type, per its grant_types, as Passport’s Client::hasGrantType() checks.

__construct() ​

View source

Arguments ​

  • $row

hasScope() ​

Whether the client may request a scope, per its scopes, as Passport’s Client::hasScope() checks.

View source

Arguments ​

  • $scope

supportsGrantType() ​

Whether the client may use a grant type, per its grant_types, as Passport’s Client::hasGrantType() checks.

View source

Arguments ​

  • $grantType