英文:
Google SignIn validation error using jwt-go
问题
我目前正在尝试将我的应用程序与Google SignIn集成。我希望我的Golang后端能够解码和验证OIDC令牌。我正在尝试使用JWT-GO库,但我在验证JWT签名时遇到了问题。
我找到了这篇帖子,它对我有所帮助,但我仍然无法弄清楚为什么会出现crypto/rsa: verification error
错误。
我在这个Github存储库中推送了一个示例代码。如果有人能帮忙解决这个问题,那就太好了。
提前感谢
英文:
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
答案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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论