openid: configuration: added jwt claims

This commit is contained in:
Philippe Loctaux 2023-03-18 21:47:25 +01:00
parent 72c67a7a82
commit 49b3a3d1fe

View file

@ -53,6 +53,9 @@ pub fn configuration(base_url: &str) -> Result<Value, Error> {
CoreClaimName::new("iat".to_string()), CoreClaimName::new("iat".to_string()),
CoreClaimName::new("iss".to_string()), CoreClaimName::new("iss".to_string()),
CoreClaimName::new("name".to_string()), CoreClaimName::new("name".to_string()),
CoreClaimName::new("username".to_string()),
CoreClaimName::new("roles".to_string()),
CoreClaimName::new("isAdmin".to_string()),
])); ]));
Ok(serde_json::to_value(provider_metadata)?) Ok(serde_json::to_value(provider_metadata)?)