()
| 230 | |
| 231 | #[test] |
| 232 | fn header_is_eddsa_jwt_with_kid() { |
| 233 | let header = JwtHeader { |
| 234 | alg: "EdDSA", |
| 235 | typ: "JWT", |
| 236 | kid: "ABCDEF".to_string(), |
| 237 | }; |
| 238 | let json = serde_json::to_string(&header).unwrap(); |
| 239 | assert_eq!(json, r#"{"alg":"EdDSA","typ":"JWT","kid":"ABCDEF"}"#); |
| 240 | } |
| 241 | |
| 242 | /// A human's token must not carry `act`/`dlg` at all — not `null`. The |
| 243 | /// server distinguishes "delegated" from "not" by the claim's presence, so |