6 use stemmaweb::Authentication::Credential::Google;
7 use Crypt::OpenSSL::RSA;
12 my $cert = io("$FindBin::Bin/../etc/certonly.pem")->slurp;
13 my $priv = io("$FindBin::Bin/../etc/privkey")->slurp;
15 my $hash = { 'a' => $cert };
17 warn encode_json($hash) . "\n\n\n\n\n";
19 my $jwt = JSON::WebToken->encode({
21 openid_id => 'https://www.google.com/accounts/o8/id3',
22 }, $priv, 'RS256', { kid => 'a' });
25 warn $jwt . "\n\n\n\n\n";
27 warn Dumper (stemmaweb::Authentication::Credential::Google->decode($jwt, $hash));