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: |
|
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"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {}
|
||||||
|
|
Loading…
Reference in a new issue