Jhipster social login via Google

I added clientID and clientSecret (created in the Google developer console) in application.yml, but I could not get it to work. Any idea what causes the 400 error. Error: redirect_uri_mismatch. I got http://127.0.0.1:8080 in authorized JavaScript sources.

I did everything the google tutorial says, but no luck:

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

+5
source share
2 answers

You need to specify a different redirect URL that you allow in the Google Developer Console. For you, you need to add the http://127.0.0.1:8080 url.

Little tattoo:

  • Connect to the developer console, click one main menu

enter image description here

  1. Select Manage API

enter image description here

  1. Go to Identifiant and select your application here JHipster

enter image description here

  1. And add your url and save

enter image description here

+6
source

Another thing I had to do was not clearly indicated on the Google Developer link in order to enable the Google+ API.

Various APIs are available through the Library tab under the toolbar.

+2
source

Source: https://habr.com/ru/post/1235456/


All Articles