From 973b7a2a12bd3d81d49c28eb8c9bbdd56b2c2495 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Thu, 28 Jun 2012 18:24:56 +0200 Subject: =?UTF-8?q?Add=20missing=20=E2=80=9Ctyp=E2=80=9D=20key=20to=20gene?= =?UTF-8?q?rated=20JWS=20objects.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sign.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sign.pl b/sign.pl index 137a7d7..c7e51ad 100755 --- a/sign.pl +++ b/sign.pl @@ -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; -- cgit v1.2.3