【发布时间】:2017-10-17 07:19:42
【问题描述】:
我有一个网站,我想使用 openId 通过 Google 或 LinkedIn 连接到真实用户。我已经通过 Google 创建了一个具有真实用户的程序。我有点困惑,我对 google 的请求与 oauth2 中使用的完全一样,只是我传递的范围参数不同。
https://accounts.google.com/o/oauth2/v2/auth?
client_id=xxxxxxxxxxxxxxxxxxxx&
response_type=code&scope=openid%20email&redirect_uri=http://example.com/abc&state=fb25331d49034379a46ba62a31a
在此之后,还有一个获取访问令牌的调用。我没有看到 openId-connect 和 oauth2 之间的请求有任何区别。
另外,我想制作可以通过 google 和linkedIn 进行验证的通用方法。 openId connect 是否提供了通过多个 IDP 进行身份验证的标准方法。
谢谢。
【问题讨论】:
标签: java authentication oauth-2.0 openid-connect