如何验证Google ID令牌? [英] how to verify Google ID-token?
本文介绍了如何验证Google ID令牌?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过Go AppEngine后端对Android用户进行身份验证,
I want to authenticate Android users with a Go AppEngine backend,
how can I verify the token and get the payload ? is there a Go package for this ?
推荐答案
I found the solution myself, the ID-token can be verified with the oauth2/v2 package of the https://code.google.com/p/google-api-go-client/ library.
some installation tweaks are necessary for using it with AppEngine, I found some pointers at http://golangtutorials.blogspot.co.il/2011/11/using-external-api-in-go-appengine.html
这篇关于如何验证Google ID令牌?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文