how to verify google openid response

前端 未结 4 876
日久生厌
日久生厌 2021-01-22 14:15

I\'m trying to add authorization throw google openid to my users. I\'m receiving id (https://www.google.com/accounts/o8/id?id=AIt...Ew-Bo) but how can i check that it\'s legit.

4条回答
  •  囚心锁ツ
    2021-01-22 15:11

    Rather than trying to implement discovery and signature verification by yourself, you really ought to use one of the many libraries that have already been created for this purpose. Here are a bunch for various programming languages:

    http://openid.net/developers/libraries/

提交回复
热议问题