Problem with OAuth coordinates of Google Maps

I am trying to authenticate with OAuth2 using Google Maps Coordinate, but I had a problem specifying the area in which I want Auth tokens to be valid. The URL that I use to request the access code is in this format:

https://accounts.google.com/o/oauth2/auth?response_type=code&client_id={client id}&redirect_uri={App URL}&approval_prompt=force&scope=https://www.googleapis.com/auth/coordinate

The problem I am facing is that the consent screen simply says: "This application wants: to have offline access." He does not mention granting permissions to interact with Google Maps Coordinate. I'm starting to think about this with an error on the Google side, because if I try to get a read-only token by adding .readonlythe URL to the end, the message "This application wants: view your Google coordinates" appears on the consent screen. Similarly, if I replace coordinatewith docsor drive, I get the correct consent screen where the application asks for permission to access and modify the contents of Google Drive.

If I get a token using the coordinate area with the "Access to offline access" permissions, and then use this token to try to make requests for coordination, I just get the "Insufficient permissions" errors.

The problem only occurs when trying to get an access code for the Card Coordinator. Has anyone else experienced this issue?

thank

+4
source share
2 answers

, Offline Access, , . , , . Google (https://www.google.com/settings/personalinfo) → → → , ,

0

, (, , ). ( 100% , )

url approval_prompt=force, , . , ( , ), .

, " : ". , .

docs drive , .

: (, , , , , allow) .

.

+1

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


All Articles