Jhipster通过Google进行社交登录

问题描述:

我在application.yml中添加了clientID和clientSecret(在Google Developer Console中创建),但我无法正常工作。任何想法是什么导致错误400.错误:redirect_uri_mismatch。我在授权的JavaScript起源中获得了http://127.0.0.1:8080Jhipster通过Google进行社交登录

我所做的一切什么是谷歌的教程说,但没有运气:

https://developers.google.com/identity/sign-in/web/server-side-flow#step_1_create_a_client_id_and_client_secret

你需要指定你的谷歌开发者控制台中的不同重定向URL您授权。对于您,您需要添加http://127.0.0.1:8080网址。

小政党成员:

  1. 连接到您的开发者控制台,点击一个主菜单

enter image description here

  1. 选择API管理
  2. enter image description here

    1. 转到Identifiant并选择应用程序,这里JHipster
    2. enter image description here

      1. 并添加你的网址并保存
      2. enter image description here

      开始=>
    开始=>
开始=>

另一件我不得不做的事情在谷歌开发者链接中没有清楚提及的是启用Google+ API。

可通过仪表板下的库选项卡访问各种API。