FEATURE: Add read-only scope to API keys (#14856)

This commit adds a global read-only scope that can be used to create
new API keys.
This commit is contained in:
Bianca Nenciu
2021-11-10 17:48:00 +02:00
committed by GitHub
parent 6a749b95c9
commit 3791fbd919
8 changed files with 132 additions and 73 deletions

View File

@ -237,7 +237,7 @@ describe Admin::ApiController do
scopes = response.parsed_body['scopes']
expect(scopes.keys).to contain_exactly('topics', 'users', 'email', 'posts')
expect(scopes.keys).to contain_exactly('topics', 'users', 'email', 'posts', 'global')
end
end
end