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

GeoApiContext throwing 403 Forbidden with enterprise credentials #248

Closed
esstwo opened this issue Mar 24, 2017 · 5 comments
Closed

GeoApiContext throwing 403 Forbidden with enterprise credentials #248

esstwo opened this issue Mar 24, 2017 · 5 comments

Comments

@esstwo
Copy link

esstwo commented Mar 24, 2017

thanks for the new 0.1.18 release.
I tried integrating my code with this new release and get a 403 Forbidden exception.
Same code works fine with the previous release.

All I am doing is getting the context using this:
new GeoApiContext().setEnterpriseCredentials(CLIENT_ID, CLIENT_SIGNATURE);

and then using it
GeocodingResult[] results = GeocodingApi.reverseGeocode(getContext(), new LatLng(lat, lon)).await();

this line throws: Server Error: 403 Forbidden

@mlmilan
Copy link

mlmilan commented Mar 27, 2017

Confirmed, the problem is GeoApiContext.class line 213,
if (canUseClientId && clientId != null) { url.append("&signature=").append(urlSigner.getSignature(url.toString())); }
url is of StringBuilder type and will append "&signature=" param before actual signature generation.

@nbluis
Copy link
Contributor

nbluis commented Mar 27, 2017

I'm having same problem. 😮
Currently using 'com.google.maps:google-maps-services:0.1.18'

@nbluis
Copy link
Contributor

nbluis commented Mar 27, 2017

I tested it with version 0.1.17 and it worked correctly.

@domesticmouse
Copy link
Contributor

Whups, my bad. I'll fix and get 0.1.19 up ASAP

domesticmouse added a commit that referenced this issue Mar 28, 2017
@domesticmouse
Copy link
Contributor

I've just pushed v0.1.19 to Sonatype, should make it out to Maven Central in the next 24 hours.

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

4 participants