Skip to content

Commit

Permalink
Fix the jwk field (.web_key) to contain a proper JWK
Browse files Browse the repository at this point in the history
  • Loading branch information
g2p committed Jan 22, 2021
1 parent 301b2ff commit 1992a18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,11 +624,11 @@ pub struct RegisteredHeader {
#[serde(rename = "jku", skip_serializing_if = "Option::is_none")]
pub web_key_url: Option<String>,

/// The JSON Web Key. This is currently not implemented (correctly).
/// The JSON Web Key.
/// Serialized to `jwk`.
/// Defined in [RFC7515#4.1.3](https://tools.ietf.org/html/rfc7515#section-4.1.3).
#[serde(rename = "jwk", skip_serializing_if = "Option::is_none")]
pub web_key: Option<String>,
pub web_key: Option<jwk::JWK<Empty>>,

/// The Key ID. This is currently not implemented (correctly).
/// Serialized to `kid`.
Expand Down

0 comments on commit 1992a18

Please sign in to comment.