使用jwt-go进行Google SignIn验证时出现错误。

huangapple go评论74阅读模式
英文:

Google SignIn validation error using jwt-go

问题

我目前正在尝试将我的应用程序与Google SignIn集成。我希望我的Golang后端能够解码和验证OIDC令牌。我正在尝试使用JWT-GO库,但我在验证JWT签名时遇到了问题。

我找到了这篇帖子,它对我有所帮助,但我仍然无法弄清楚为什么会出现crypto/rsa: verification error错误。

我在这个Github存储库中推送了一个示例代码。如果有人能帮忙解决这个问题,那就太好了。

提前感谢 使用jwt-go进行Google SignIn验证时出现错误。

英文:

I'm currently trying to integrate my app with Google SignIn. I want my Golang backend to be able to decode and validate OIDC tokens. I'm trying to use the JWT-GO library, but I'm stuck with the validation of the signature of the JWT.

I found this post and it helped me well, still I can't figure out why I'm getting an crypto/rsa: verification error.

I pushed an example code in this Github repository. Would be great if someone could help with that.

Thanks in advance 使用jwt-go进行Google SignIn验证时出现错误。

答案1

得分: 0

我终于成功了,更多详细信息请参考这里:https://github.com/dgrijalva/jwt-go/issues/116#issuecomment-188903951

英文:

I finally made it work, more details here : https://github.com/dgrijalva/jwt-go/issues/116#issuecomment-188903951

huangapple
  • 本文由 发表于 2016年2月16日 02:42:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/35416762.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定