<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-AU link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Tim,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><pre><span style='color:black'>>> Start at <a href="https://accounts.google.com/.well-known/openid-configuration">https://accounts.google.com/.well-known/openid-configuration</a><o:p></o:p></span></pre><pre><span style='color:black'>>><o:p> </o:p></span></pre><pre><span style='color:black'>>> Hope it works...<o:p></o:p></span></pre><p class=MsoNormal><o:p> </o:p></p><pre><span style='color:black'>> Looks good.  I added this to the interop info at  <a href="http://osis.idcommons.net/wiki/OC5:Google_Deployment.">http://osis.idcommons.net/wiki/OC5:Google_Deployment.</a><o:p></o:p></span></pre><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Actually it look bad.<o:p></o:p></p><p class=MsoNormal>That configuration includes<o:p></o:p></p><pre><span style='color:black'>"jwks_uri": "https://www.googleapis.com/oauth2/v2/certs",<o:p></o:p></span></pre><p class=MsoNormal>That JWK has two key. Calling raw keys “certs” is a curious choice.<o:p></o:p></p><p class=MsoNormal>Both keys are wrong.<o:p></o:p></p><p class=MsoNormal>They are 1024-bit RSA keys. The JWA spec says they MUST be 2048-bit or larger.<o:p></o:p></p><p class=MsoNormal>The "n" members (modulus) are base64-encoded, when they should be base64url-encoded. Note the presence of / and +.<o:p></o:p></p><p class=MsoNormal>They also start (after base64-decoding) with a leading 0x00 byte, whereas the spec says "n" is unsigned and “MUST utilize the minimum number of octets to represent the value”. There should be 1024/6=171 b64 chars, instead of (8+1024)/6=172.<o:p></o:p></p><p class=MsoNormal><a href="http://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-23#section-6.3.1.1">http://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-23#section-6.3.1.1</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:black'><a href="https://www.googleapis.com/oauth2/v2/certs">https://www.googleapis.com/oauth2/v2/certs</a>:<o:p></o:p></span></p><pre><span style='color:black'>{<o:p></o:p></span></pre><pre><span style='color:black'> "keys": [<o:p></o:p></span></pre><pre><span style='color:black'>  {<o:p></o:p></span></pre><pre><span style='color:black'>   "kty": "RSA",<o:p></o:p></span></pre><pre><span style='color:black'>   "alg": "RS256",<o:p></o:p></span></pre><pre><span style='color:black'>   "use": "sig",<o:p></o:p></span></pre><pre><span style='color:black'>   "kid": "36239103c08ce207082b721dfbc80bc8d800bff2",<o:p></o:p></span></pre><pre><span style='color:black'>   "n": "AKunY03zz/oJonovVNJjnjscjScnqtdtMEmnExJShJkoh8KjyHtH+TAldA7jrpQHDJnX81IxbkmH1JQMkgSKN4qVvJTqvA9RQFc6phN+7HU4JfPfpkYb3Jbnl35w4CXJkZoyXucAj4qw87szAgt2WBLrFoT08PjONmii5cmFR6BT",<o:p></o:p></span></pre><pre><span style='color:black'>   "e": "AQAB"<o:p></o:p></span></pre><pre><span style='color:black'>  },<o:p></o:p></span></pre><pre><span style='color:black'>  {<o:p></o:p></span></pre><pre><span style='color:black'>   "kty": "RSA",<o:p></o:p></span></pre><pre><span style='color:black'>   "alg": "RS256",<o:p></o:p></span></pre><pre><span style='color:black'>   "use": "sig",<o:p></o:p></span></pre><pre><span style='color:black'>   "kid": "7e18e2970941338884c88f2e789d7d8c519cd919",<o:p></o:p></span></pre><pre><span style='color:black'>   "n": "ALjEqP0OUMivrQUIPj39+ckmE3KBtDDNdJZLCxFRGT2gUETsbc/x+zUit5xvKWN4DbSlVCwHdvIQcEgTdG+HZTrCoPDkoiOW+DxX4j+IkpiS1hy3YL9gHbBD4J75dGGRTfavZ77fu4E0/a/3s22rOda21ZQlUhlUZtyUxUGpxxSj",<o:p></o:p></span></pre><pre><span style='color:black'>   "e": "AQAB"<o:p></o:p></span></pre><pre><span style='color:black'>  }<o:p></o:p></span></pre><pre><span style='color:black'> ]<o:p></o:p></span></pre><pre><span style='color:black'>}<o:p></o:p></span></pre><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>--<o:p></o:p></p><p class=MsoNormal>James Manger<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>