1 | <?php |
||
5 | class OAuth |
||
6 | { |
||
7 | private $instance; |
||
8 | |||
9 | const CLIENT_NODE_RED_ADMIN = 'node-red-admin'; |
||
10 | const CLIENT_NODE_RED_EDITOR = 'node-red-editor'; |
||
11 | |||
12 | const SCOPE_ALL = '*'; |
||
13 | const SCOPE_READ = 'read'; |
||
14 | |||
15 | 1 | public function __construct(Instance $instance) |
|
19 | |||
20 | 1 | public function getToken($username, $password, $clientId = self::CLIENT_NODE_RED_ADMIN, $scope = self::SCOPE_ALL) |
|
32 | } |
||
33 |