mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-01 05:03:32 -06: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:
parent
feb6abbab2
commit
9bf448be7a
8 changed files with 130 additions and 7 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue