mirror of
https://github.com/warp-tech/warpgate.git
synced 2024-09-20 06:46:17 +08:00
word
This commit is contained in:
parent
47c943d201
commit
ef3c20719f
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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 {}
|
||||
|
|
Loading…
Reference in a new issue