相关疑难解决方法(0)

Twitter oAuth callbackUrl - localhost开发

是否有其他人难以获得Twitters oAuth的回调URL以访问他们的localhost开发环境.显然它最近被禁用了.http://code.google.com/p/twitter-api/issues/detail?id=534#c1

有没有人有解决方法.我真的不想阻止我的发展

twitter oauth

110
推荐指数
8
解决办法
8万
查看次数

Google OAuth2无法在本地开发服务器上运行 - PHP Codeigniter spark

我正在尝试使用Codeigniter spark(http://getsparks.org/packages/oauth2/versions/HEAD/show)允许用户使用fb和google登录我的php网站.

我的本地开发站点(在wampserver上)被称为mysite.dev,我有一个etc/hosts文件,如:

127.0.0.1       mysite.dev
Run Code Online (Sandbox Code Playgroud)

Facebook登录工作绝对正常.但是当我尝试使用谷歌登录时,谷歌抱怨:redirect_uri的参数值无效:不允许使用非公共域:http://mysite.dev/index.php/oauth2/session/google 其中oauth2是我的控制器,会话是功能,我指定fb /谷歌等

任何线索/提示?

php codeigniter google-login oauth-2.0

24
推荐指数
4
解决办法
1万
查看次数

Google OAuth2 redirect_uri_mismatch问题

所有,

我试图通过谷歌进行身份验证时得到400 redirect_url_mismatch错误.我通过django应用程序使用python-socal-auth来实现这个过程.

一切顺利,直到我进入redirect_uri_mismatch问题的最后阶段.

在谷歌上,我收到此消息.

"The redirect URI in the request: http://localhost:8000/something/complete/google-oauth2/ did not match a registered redirect URI"

`Request Details
from_login=1
scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
response_type=code
redirect_uri=http://localhost:8000/something/complete/google-oauth2/
state=qT1RLLMa72F8NxFFubHwCVe3GgLDNcgZ
as=-55f896f3314b21af
pli=1
client_id=160177117398
authuser=0
hl=en`
Run Code Online (Sandbox Code Playgroud)

下面是客户端ID的重定向URI的屏幕截图.

在此输入图像描述

我究竟做错了什么?

谢谢!

python django google-api

7
推荐指数
1
解决办法
2971
查看次数

如何让浏览器存储我的 Google Identity Services 登录状态?

我正在使用Google Identity Services JavaScript API 访问我的一些 Google 数据:

https://developers.google.com/identity/oauth2/web/guides/migration-to-gis

我使用的代码在本节中:

Implicit flow examples> The new way> GAPI async/await.

我从 a 运行代码http://localhost:xxxx,并将域和端口添加到相关凭据中。

一切正常:

  1. 登录后我可以看到我的个人资料图片和姓名。
  2. 登录后我可以访问预期的数据。

但刷新页面后必须重新登录。

有什么方法可以在浏览器中保留登录状态,这样我就不必在同意弹出窗口中一次又一次地单击我的用户名?

代码如下:

<!DOCTYPE html>
<html>
<head></head>
<body>
  <h1>GAPI with GIS async/await</h1>
  <button id="showEventsBtn" onclick="showEvents();">Show Calendar</button><br><br>
  <button id="revokeBtn" onclick="revokeToken();">Revoke access token</button>

  <script>

    const gapiLoadPromise = new Promise((resolve, reject) => {
      gapiLoadOkay = resolve;
      gapiLoadFail = reject;
    });
    const gisLoadPromise = new Promise((resolve, reject) => {
      gisLoadOkay = resolve;
      gisLoadFail = …
Run Code Online (Sandbox Code Playgroud)

javascript identity google-api google-oauth google-identity

5
推荐指数
1
解决办法
1343
查看次数