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

View file

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