Updated and synced public available scopes
This commit is contained in:
parent
327b82dffc
commit
f77aa39ff7
5 changed files with 26 additions and 33 deletions
|
@ -46,6 +46,9 @@ $admins = [
|
||||||
'tasks.write',
|
'tasks.write',
|
||||||
'webhooks.read',
|
'webhooks.read',
|
||||||
'webhooks.write',
|
'webhooks.write',
|
||||||
|
'locale.read',
|
||||||
|
'avatars.read',
|
||||||
|
'health.read',
|
||||||
];
|
];
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
|
@ -11,12 +11,14 @@ return [ // List of publicly visible scopes
|
||||||
'documents.write',
|
'documents.write',
|
||||||
'files.read',
|
'files.read',
|
||||||
'files.write',
|
'files.write',
|
||||||
'platforms.read',
|
// 'platforms.read',
|
||||||
'platforms.write',
|
// 'platforms.write',
|
||||||
'keys.read',
|
// 'keys.read',
|
||||||
'keys.write',
|
// 'keys.write',
|
||||||
'tasks.read',
|
// 'tasks.read',
|
||||||
'tasks.write',
|
// 'tasks.write',
|
||||||
'webhooks.read',
|
// 'webhooks.read',
|
||||||
'webhooks.write',
|
// 'webhooks.write',
|
||||||
|
'locale.read',
|
||||||
|
'avatars.read',
|
||||||
];;
|
];;
|
|
@ -18,18 +18,7 @@ use Cron\CronExpression;
|
||||||
|
|
||||||
include_once __DIR__ . '/../shared/api.php';
|
include_once __DIR__ . '/../shared/api.php';
|
||||||
|
|
||||||
$scopes = [ // TODO sync with console UI list
|
$scopes = include __DIR__.'/../../../app/config/scopes.php';
|
||||||
'users.read',
|
|
||||||
'users.write',
|
|
||||||
'teams.read',
|
|
||||||
'teams.write',
|
|
||||||
'collections.read',
|
|
||||||
'collections.write',
|
|
||||||
'documents.read',
|
|
||||||
'documents.write',
|
|
||||||
'files.read',
|
|
||||||
'files.write',
|
|
||||||
];
|
|
||||||
|
|
||||||
$utopia->get('/v1/projects')
|
$utopia->get('/v1/projects')
|
||||||
->desc('List Projects')
|
->desc('List Projects')
|
||||||
|
|
|
@ -1,17 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
$scopes = $this->getParam('scopes', []);
|
||||||
$scopes = [ // TODO sync with project list
|
|
||||||
'users.read',
|
|
||||||
'users.write',
|
|
||||||
'teams.read',
|
|
||||||
'teams.write',
|
|
||||||
'collections.read',
|
|
||||||
'collections.write',
|
|
||||||
'documents.read',
|
|
||||||
'documents.write',
|
|
||||||
'files.read',
|
|
||||||
'files.write',
|
|
||||||
];
|
|
||||||
?>
|
?>
|
||||||
<div class="cover margin-bottom-large">
|
<div class="cover margin-bottom-large">
|
||||||
<h1 class="zone xl margin-bottom-large margin-top">
|
<h1 class="zone xl margin-bottom-large margin-top">
|
||||||
|
|
|
@ -90,7 +90,18 @@ trait ProjectCustom
|
||||||
], [
|
], [
|
||||||
'name' => 'Demo Project Key',
|
'name' => 'Demo Project Key',
|
||||||
'scopes' => [
|
'scopes' => [
|
||||||
|
'users.read',
|
||||||
|
'users.write',
|
||||||
|
'teams.read',
|
||||||
|
'teams.write',
|
||||||
|
'collections.read',
|
||||||
|
'collections.write',
|
||||||
|
'documents.read',
|
||||||
|
'documents.write',
|
||||||
'files.read',
|
'files.read',
|
||||||
|
'files.write',
|
||||||
|
'locale.read',
|
||||||
|
'avatars.read',
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue