MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / extract_roles_missing_claim

Function extract_roles_missing_claim

crates/openshell-server/src/auth/oidc.rs:455–460  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

453
454 #[test]
455 fn extract_roles_missing_claim() {
456 let json = serde_json::json!({ "sub": "user1" });
457 let mut claims: OidcClaims = serde_json::from_value(json).unwrap();
458 claims.extract_roles("realm_access.roles");
459 assert!(claims.roles.is_empty());
460 }
461
462 #[test]
463 fn extract_scopes_space_delimited() {

Callers

nothing calls this directly

Calls 1

extract_rolesMethod · 0.80

Tested by

no test coverage detected