diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2012-06-28 18:24:56 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2012-06-28 18:24:56 +0200 |
commit | 973b7a2a12bd3d81d49c28eb8c9bbdd56b2c2495 (patch) | |
tree | 1bb5a7033053b19a795d294fdef3d204b0feabf6 | |
parent | bd9bc596f7310a497b15f4cbb88126b3a2e0ca2e (diff) |
Add missing “typ” key to generated JWS objects.
-rwxr-xr-x | sign.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -53,7 +53,7 @@ sub sign($$$$) { principal => { email => $email } }; - my $header = {alg => "RS256"}; + my $header = {typ => "JWT", alg => "RS256"}; my $header_bytes = encode_base64_url(encode_json($header)); my $cert_bytes = encode_base64_url(encode_json($cert)); my $string_to_sign = $header_bytes . "." . $cert_bytes; |