From 9a9d1cf481a928a469f19cf5ba9df8d024d97572 Mon Sep 17 00:00:00 2001 From: Cyril David Date: Fri, 19 Feb 2021 10:42:49 -0800 Subject: [PATCH] Reduce-scopes We're only gonna keep scopes to support the following commands for now: - clients - login - logs - test login - test token - apis - quickstart --- internal/auth/auth.go | 5 ----- internal/auth/auth_test.go | 2 -- 2 files changed, 7 deletions(-) diff --git a/internal/auth/auth.go b/internal/auth/auth.go index f97dcaf6d..d960f07d7 100644 --- a/internal/auth/auth.go +++ b/internal/auth/auth.go @@ -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 { diff --git a/internal/auth/auth_test.go b/internal/auth/auth_test.go index 61132d058..fd1e2f1df 100644 --- a/internal/auth/auth_test.go +++ b/internal/auth/auth_test.go @@ -7,8 +7,6 @@ func TestRequiredScopes(t *testing.T) { crudResources := []string{ "actions", "clients", - "connections", - "hooks", "resource_servers", "rules", }