File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
crates/rust-mcp-sdk/src/auth/spec Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,6 @@ pub struct JsonWebKeySet {
1010 pub keys : Vec < Jwk > ,
1111}
1212
13- #[ derive( Debug , Serialize , Deserialize , Clone ) ]
14- struct Claims {
15- aud : Option < String > , // Optional. Audience
16- exp : usize , // Required (validate_exp defaults to true in validation). Expiration time (as UTC timestamp)
17- iat : Option < usize > , // Optional. Issued at (as UTC timestamp)
18- iss : Option < String > , // Optional. Issuer
19- nbf : Option < usize > , // Optional. Not Before (as UTC timestamp)
20- sub : Option < String > , // Optional. Subject (whom token refers to)
21- }
22-
2313pub fn decode_token_header ( token : & str ) -> Result < jsonwebtoken:: Header , AuthenticationError > {
2414 let header =
2515 decode_header ( token) . map_err ( |err| AuthenticationError :: TokenVerificationFailed {
You can’t perform that action at this time.
0 commit comments