Commit 572636ea authored by Clément OUDOT's avatar Clément OUDOT

Use Base64 URL to decode JWT (#184)

parent 375feb93
......@@ -1301,7 +1301,7 @@ sub getIDTokenSub {
my ( $self, $id_token ) = splice @_;
my $jwt = $self->extractJWT($id_token);
my $payload = decode_json( decode_base64( $jwt->[1] ) );
my $payload = decode_json( decode_base64url( $jwt->[1] ) );
return $payload->{sub};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment