Skip to content

Commit

Permalink
Reduce-scopes
Browse files Browse the repository at this point in the history
We're only gonna keep scopes to support the following commands for now:

- clients
- login
- logs
- test login
- test token
- apis
- quickstart
  • Loading branch information
cyx committed Feb 19, 2021
1 parent 83c3010 commit 9a9d1cf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions internal/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,9 @@ var requiredScopes = []string{
"openid",
"create:actions", "delete:actions", "read:actions", "update:actions",
"create:clients", "delete:clients", "read:clients", "update:clients",
"create:connections", "delete:connections", "read:connections", "update:connections",
"create:hooks", "delete:hooks", "read:hooks", "update:hooks",
"create:resource_servers", "delete:resource_servers", "read:resource_servers", "update:resource_servers",
"create:rules", "delete:rules", "read:rules", "update:rules",
"read:client_keys", "read:logs",
"create:roles", "delete:roles", "read:roles", "update:roles",
"create:custom_domains", "delete:custom_domains", "read:custom_domains", "update:custom_domains",
"read:users",
}

type Authenticator struct {
Expand Down
2 changes: 0 additions & 2 deletions internal/auth/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ func TestRequiredScopes(t *testing.T) {
crudResources := []string{
"actions",
"clients",
"connections",
"hooks",
"resource_servers",
"rules",
}
Expand Down

0 comments on commit 9a9d1cf

Please sign in to comment.