Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm

put the kid in the header

so that later jose knows which key to try (it will not just try them all)

Changed files
+5 -5
who-am-i
src
+5 -5
who-am-i/src/jwt.rs
··· 74 74 let dt_exp = dt_now + Duration::from_secs(30 * 86_400); 75 75 let exp = dt_exp.as_secs(); 76 76 77 - Ok(encode( 78 - &Header::new(Algorithm::ES256), 79 - &Claims { sub, exp }, 80 - &self.encoding_key, 81 - )?) 77 + let mut header = Header::new(Algorithm::ES256); 78 + header.kid = Some("who-am-i-00".to_string()); 79 + // todo: consider setting jku? 80 + 81 + Ok(encode(&header, &Claims { sub, exp }, &self.encoding_key)?) 82 82 } 83 83 84 84 pub fn jwk(&self) -> Jwk {