Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Google Service Authentication (access_token) instead of API Key #58

Open
dviry opened this issue Sep 3, 2018 · 1 comment
Open

Comments

@dviry
Copy link

dviry commented Sep 3, 2018

As also mentioned in another related issue, using Google API Keys is troublesome specially when stored in a javascript file (that anyone can read).

Instead, Google suggests using a Service Account; so any server-side code is actually authenticating to Google (using a private key or certificate), receives a temporary access_token which can then be passed to the URLs when accessing Google Services.
In the Geolocator config, only a Google API Key can be specified - could this be extended to allow an access_token which will then be instead used on URLs instead of the Key=xxx parameter?

I think that would solve a lot of security issues as well as enable all Google Services to work (at least for those ready to add a server-side component for the authentication)

Cheers

@dmegatool
Copy link

Anybody got a work around to not use unrestricted keys ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants