How to add multiple redirect URIs for Google OAuth 2?

后端 未结 2 1209
悲&欢浪女
悲&欢浪女 2020-12-29 04:22

I am trying to make Google OAuth 2 authentication work with a toy app I am running on my computer (at localhost:8080) using Social Auth for Java.

Howeve

2条回答
  •  天命终不由人
    2020-12-29 05:10

    It's actually easier than you think, unfortunately, it took me a couple of hours to figure it out.

    How can I add multiple redirect_uris to my app?

    Normally when you add multiple links to something on Google or elsewhere you separate it by , or ; but with Redirect URIs you have to use a new line, it's actually not very intuitive. So when you press the Edit Settings button, you can add to the URI and/or Origins if you have a couple more links, separated by newlines (enter).

    No need for complicated app configurations or new keys.

    image

    Why is Google identifying my app as "Project Default Service Account" rather than "My Hobby App"?

    On your second question: You have to go to the "Consent Screen" tab to change your app info such as your PRODUCT NAME, HOMEPAGE, LOGO, etc.

提交回复
热议问题