无法在邮递员

时间:2017-04-30 17:46:43

标签: authentication oauth google-api postman google-people

我正在开发一款需要谷歌OAuth2.0的应用。最初,我试图使用邮递员测试网络服务。以下是我遵循的步骤。

  1. https://console.developers.google.com/中,我创建了一个项目。
  2. 在图书馆下我已启用 Google People API
  3. 在凭据中,我创建了一个https://www.getpostman.com/oauth2/callback作为重定向网址
  4. 我得到了客户端ID和客户端ID。
  5. 通过上述细节,我试图在邮递员中测试相同的内容。

    在帖子中,我做了以下步骤。

    1. 在授权下选择 OAuth2.0 ,然后点击获取新的访问令牌。这打开了一个新窗口,我输入了以下详细信息。
    2. 验证网址:https://accounts.google.com/o/oauth2/auth
    3. 访问令牌网址:https://accounts.google.com/o/oauth2/token
    4. 客户ID:我从谷歌控制台获得的
    5. 客户端密码:我从谷歌控制台获得的密码
    6. 范围:https://www.googleapis.com/auth/contacts https://www.googleapis.com/auth/contacts.readonly https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/user.addresses.read https://www.googleapis.com/auth/user.birthday.read https://www.googleapis.com/auth/user.emails.read https://www.googleapis.com/auth/user.phonenumbers.read https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
    7. 授权类型:授权码。 当我点击请求令牌时,我被重定向以接受权限,令我惊讶的是,配置详细信息窗口(在邮递员中)并没有关闭并向我显示令牌。下面是我点击请求令牌的截图。enter image description here
    8. 请让我知道我哪里出错了,我该怎么办呢。

      由于

0 个答案:

没有答案