mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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
This commit is contained in:
@@ -119,6 +119,9 @@ EXPECT=$(cat << "EOF"
|
||||
"oidc-admin-groups": [
|
||||
"steamy"
|
||||
],
|
||||
"oidc-allowed-groups": [
|
||||
"sloths"
|
||||
],
|
||||
"oidc-client-id": "1234",
|
||||
"oidc-client-secret": "shhhh its a secret",
|
||||
"oidc-enabled": true,
|
||||
@@ -252,6 +255,7 @@ GTS_OIDC_CLIENT_ID='1234' \
|
||||
GTS_OIDC_CLIENT_SECRET='shhhh its a secret' \
|
||||
GTS_OIDC_SCOPES='read,write' \
|
||||
GTS_OIDC_LINK_EXISTING=true \
|
||||
GTS_OIDC_ALLOWED_GROUPS='sloths' \
|
||||
GTS_OIDC_ADMIN_GROUPS='steamy' \
|
||||
GTS_SMTP_HOST='example.com' \
|
||||
GTS_SMTP_PORT=4269 \
|
||||
|
Reference in New Issue
Block a user