Correct redirect URI for Google API and OAuth 2.0

前端 未结 1 555
南笙
南笙 2020-12-16 10:53

I am making an application with the Google Maps API. I want to be able to have one person on a computer, watch what another person has edited to a map. I am thinking of pass

相关标签:
1条回答
  • 2020-12-16 11:16

    There's no problem with using a localhost url for Dev work - obviously it needs to be changed when it comes to production.

    You need to go here: https://developers.google.com/accounts/docs/OAuth2 and then follow the link for the API Console - link's in the Basic Steps section. When you've filled out the new application form you'll be asked to provide a redirect Url. Put in the page you want to go to once access has been granted.

    When forming the Google oAuth Url - you need to include the redirect url - it has to be an exact match or you'll have problems. It also needs to be UrlEncoded.

    0 讨论(0)
提交回复
热议问题