summaryrefslogtreecommitdiff
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorLibravatar 9p4 <vcs@ersei.net>2024-02-27 10:07:29 -0500
committerLibravatar GitHub <noreply@github.com>2024-02-27 16:07:29 +0100
commit9bf448be7aa5e2468d5a6302d7c37ebad0f84176 (patch)
treec03e0079e84d8fd412cc23abc9ebb1b1118559e8 /internal/config/config.go
parent[chore/docs] Various little docs updates (#2691) (diff)
downloadgotosocial-9bf448be7aa5e2468d5a6302d7c37ebad0f84176.tar.xz
[feature/oidc] Add support for very basic RBAC (#2642)
* Add support for very basic RBAC * Add some small tests for allowedGroup and adminGroup * Switch to table-driven tests
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 292b6b7ee..c810222a1 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -133,6 +133,7 @@ type Configuration struct {
OIDCClientSecret string `name:"oidc-client-secret" usage:"ClientSecret of GoToSocial, as registered with the OIDC provider."`
OIDCScopes []string `name:"oidc-scopes" usage:"OIDC scopes."`
OIDCLinkExisting bool `name:"oidc-link-existing" usage:"link existing user accounts to OIDC logins based on the stored email value"`
+ OIDCAllowedGroups []string `name:"oidc-allowed-groups" usage:"Membership of one of the listed groups allows access to GtS. If this is empty, all groups are allowed."`
OIDCAdminGroups []string `name:"oidc-admin-groups" usage:"Membership of one of the listed groups makes someone a GtS admin"`
TracingEnabled bool `name:"tracing-enabled" usage:"Enable OTLP Tracing"`