\validate_scope

Confirms that the key pair has been given rights to the scope

Key pairs have to have been given rights to a scope (e.g. get_property, set_property etc). The scopes available to the keypair have already been determined by index.php, here we will check that the scope in question is allowed.

Summary

Methods
Properties
Constants
__construct()
validate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(  $user_scopes) 

Constructor

Parameters

$user_scopes

validate()

validate(  $scope) 

Confirms or denys whether or not the key pair has rights to access the scope requested by the API feature

Parameters

$scope