什么返回Google公钥端点 [英] what returns the Google public key Endpoint
问题描述
我正在使用我的应用程序中的OpenID Connect,我从Google正确获得了JWT令牌,我需要使用签名对其进行验证. 为此,我需要公共密钥,Google提供了一个包含所有公共证书的URL.
I am working with OpenID Connect in my application, i got the JWT token correctly from Google and I need to validate it using Signature. To achieve this i need the public key, Google provide an URL which contains all its public certificate.
https://www.googleapis.com/oauth2/v3/certs
但它返回以下内容:
{
"keys": [
{
"kty": "RSA",
"alg": "RS256",
"use": "sig",
"kid": "f86c80f329b3ac69232463382fc1644167211d23",
"n": "wItpB2JpNKNgBM-xjgFbMGLYySu0SvaSA8Ag_MpqWrlWOvWvd3JQFrNKdw1nCGrGSczP6FdCRptogSEO51UB3n1h2quH-YW3NPGt0JGqXdRARJ1I1cOVq3dvrPaZhtDcEQCBAdqEmix_ngQM5vD1t8J22JO_v_JzJlTkzfYu5dPeSoXZymtgGeofdu38L1y-FlFqD09p6IP6Fxza22cv3ST3Dsw3eQ1yzGi5YuO0scTpds0jqPAslddclo22zapqB1_6qplwunpT3qAuObYR5Xn3gPseyQiwDtIk7MpEkb_AA_r4bpUGIh9-1SX3ev8urVZJ1Sg1Y_Rr-u7oQO9pdQ",
"e": "AQAB"
},
这是什么意思?公钥或证书在哪里?
what does this mean ? where is the public key or the certificate here?
感谢您的帮助!
推荐答案
这看起来像 JSON Web密钥集,其中包含有关RSA公共签名密钥的描述.依次在 JSON Web算法中描述了此类键的参数e
和n
.
This looks like a JSON Web Key Set containing a description for an RSA public signing key. Parameters e
and n
for such keys are in turn described in JSON Web Algorithms.
这篇关于什么返回Google公钥端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!