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

Function extract_scopes_missing_claim

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

Source from the content-addressed store, hash-verified

494
495 #[test]
496 fn extract_scopes_missing_claim() {
497 let json = serde_json::json!({ "sub": "user1" });
498 let claims: OidcClaims = serde_json::from_value(json).unwrap();
499 let scopes = claims.extract_scopes("scope");
500 assert!(scopes.is_empty());
501 }
502
503 #[test]
504 fn extract_scopes_openid_only_yields_empty() {

Callers

nothing calls this directly

Calls 1

extract_scopesMethod · 0.80

Tested by

no test coverage detected