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

Why can't I get the platform specific API keys to work? #20

Closed
frankyvij opened this issue Apr 4, 2021 · 7 comments
Closed

Why can't I get the platform specific API keys to work? #20

frankyvij opened this issue Apr 4, 2021 · 7 comments

Comments

@frankyvij
Copy link

Hi, thanks for the package. I do not want to enable web credentials on my google cloud - and I can't get my platform-specific credentials to work.

Is there a limitation like that?

@frankyvij
Copy link
Author

I do have bundle identifier restriction on my cloud console configuration, but isn't that how it supposed to be?

@ys-li
Copy link

ys-li commented May 15, 2021

Same here. It's an awesome package but maybe since this particular plugin is implemented with HTTP requests instead of the official SDKs, we cannot get platform specific restrictions to work. This is a pretty significant barrier for production apps as restriction of API keys is important for preventing unauthorised uses.

@eliezerp3
Copy link

Any update on this? It is a big security risk to not have API credentials locked to a specific bundle ID in production.

@acoutts
Copy link
Contributor

acoutts commented Jul 1, 2021

Hi please try with my PR here: #27

@bazrafkan
Copy link
Owner

please check on 0.4.1 version

@dalton5
Copy link

dalton5 commented May 3, 2022

is it working for you? Because from my side I have the error. I know it works because I can show my google map in the app and it is in the same api key.

Place API key is enabled.

And I setup the headers as below.

The detail error:

"{
"error_message" : "This IP, site or mobile application is not authorized to use this API key. Request received from IP address xxxxxxxxx8, with empty referer",
"predictions" : [],
"status" : "REQUEST_DENIED"
}
"

@dalton5
Copy link

dalton5 commented May 3, 2022

Sorry I fixed it. Be careful.

Ensure to remove the colons ':' in the sha

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

6 participants