This commit is contained in:
Eugene 2024-03-23 21:54:21 +01:00
parent 47c943d201
commit ef3c20719f
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4
2 changed files with 4 additions and 4 deletions

View file

@ -32,7 +32,7 @@ services:
IDENTITY_RESOURCES_INLINE: | IDENTITY_RESOURCES_INLINE: |
- Name: warpgate-scope - Name: warpgate-scope
ClaimTypes: ClaimTypes:
- warpgate_groups - warpgate_roles
# API_RESOURCES_INLINE: | # API_RESOURCES_INLINE: |
# - Name: wapgate_groups # - Name: wapgate_groups
# Scopes: # Scopes:
@ -55,7 +55,7 @@ services:
"ValueType": "string" "ValueType": "string"
}, },
{ {
"Type": "warpgate_groups", "Type": "warpgate_roles",
"Value": "[\"qa\", \"unknown\"]", "Value": "[\"qa\", \"unknown\"]",
"ValueType": "json" "ValueType": "json"
} }

View file

@ -11,8 +11,8 @@ use tracing::{debug, error};
#[derive(Debug, Deserialize, Serialize, Clone)] #[derive(Debug, Deserialize, Serialize, Clone)]
struct WarpgateClaims { struct WarpgateClaims {
// This uses the "warpgate_groups" claim from OIDC // This uses the "warpgate_roles" claim from OIDC
warpgate_groups: Option<Vec<String>>, warpgate_roles: Option<Vec<String>>,
} }
impl AdditionalClaims for WarpgateClaims {} impl AdditionalClaims for WarpgateClaims {}