()
| 472 | |
| 473 | #[test] |
| 474 | fn extract_scopes_json_array() { |
| 475 | let json = serde_json::json!({ |
| 476 | "sub": "user1", |
| 477 | "scp": ["sandbox:read", "provider:read"] |
| 478 | }); |
| 479 | let claims: OidcClaims = serde_json::from_value(json).unwrap(); |
| 480 | let scopes = claims.extract_scopes("scp"); |
| 481 | assert_eq!(scopes, vec!["sandbox:read", "provider:read"]); |
| 482 | } |
| 483 | |
| 484 | #[test] |
| 485 | fn extract_scopes_filters_standard_oidc_scopes() { |
nothing calls this directly
no test coverage detected