【问题标题】:CAS OAuth Integrating Using GoogleCAS OAuth 使用 Google 集成
【发布时间】:2013-06-20 01:34:57
【问题描述】:

我已经将 CAS 3.5.2 服务器配置为支持 OAuth 客户端,我已经使用 Facebook 成功完成了身份验证,现在我想扩展它以支持 Google,我正在做与 Facebook 相同的事情,即提供客户端ID 和 Secret 但我收到此错误

 <Failed to get user data, code : 404 / body : <!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 404 (Not Found)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}
  </style>
  <a href=//www.google.com/><img src=//www.google.com/images/errors/logo_sm.gif alt=Google></a>
  <p><b>404.</b> <ins>That’s an error.</ins>
  <p>The requested URL <code>/api/people/@me/@self</code> was not found on this server.  <ins>That’s all we know.</ins>

如果有人能指出正确的方向,我将不胜感激。

【问题讨论】:

    标签: oauth-2.0 cas google-oauth


    【解决方案1】:

    我是 CAS 的 OAuth 支持的创建者。

    Google 已取消对 OAuth 协议 1.0 版的支持,因此 GoogleProvider 不再工作。

    你应该升级到:

    • Google2Provider(如果您使用 CAS 服务器 3.5.2,请使用 scribe-up 1.3.1 依赖项而不是 scribe-up 1.2.0)
    • Google2Client(如果您使用 CAS 服务器 4.0.0,请使用 pac4j-oauth 1.4.0 依赖项)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-25
      • 2011-04-16
      • 1970-01-01
      • 2012-04-07
      • 2012-08-28
      • 2011-10-18
      相关资源
      最近更新 更多