Cheetah
|
Public Member Functions | |
scopeExists ($scope) | |
getDefaultScope ($client_id=null) | |
Implement this interface to specify where the OAuth2 Server should retrieve data involving the relevent scopes associated with this implementation.
Definition at line 12 of file ScopeInterface.php.
OAuth2\Storage\ScopeInterface::getDefaultScope | ( | $client_id = null | ) |
The default scope to use in the event the client does not request one. By returning "false", a request_error is returned by the server to force a scope request by the client. By returning "null", opt out of requiring scopes
$client_id | An optional client id that can be used to return customized default scopes. |
ex: 'default' ex: null
Implemented in OAuth2\Storage\Redis, OAuth2\Storage\Pdo, OAuth2\Storage\Memory, OAuth2\Storage\DynamoDB, OAuth2\Storage\Cassandra, and OAuth2\Scope.
OAuth2\Storage\ScopeInterface::scopeExists | ( | $scope | ) |
Check if the provided scope exists.
$scope | A space-separated string of scopes. |
Implemented in OAuth2\Storage\Redis, OAuth2\Storage\Pdo, OAuth2\Storage\Memory, OAuth2\Storage\DynamoDB, OAuth2\Storage\Cassandra, and OAuth2\Scope.