【问题标题】:How do I link the redirect uri to my localhost?如何将重定向 uri 链接到我的本地主机?
【发布时间】:2017-04-05 14:29:25
【问题描述】:

我正在尝试使用 localhost/users/auth/google_oauth2/callback 作为重定向 uri,但我不断收到 An error occured while connecting to the server: DNS lookup failed for URL: http://localhost/users/auth/google_oauth2/callback

【问题讨论】:

    标签: oauth2-playground


    【解决方案1】:

    这里的技巧是在 API Web 界面内将 http://localhost/users/auth/google_oauth2/callback 设置为重定向 URL 之一。客户端是被重定向的,所以它与网络无关。初学者的错误,所以希望如果你正在阅读这篇文章,我会让你头疼:)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-20
      • 1970-01-01
      • 2014-02-08
      • 2017-06-21
      • 2018-04-12
      • 2012-03-29
      相关资源
      最近更新 更多