Places api uses client id (enterprise credentials) instead of apikey when both are configured
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- java
- Ambito
- api, authentication
Direzione di ricerca
Inizia tracciando la costruzione della richiesta PlacesApi dal GeoContext configurato con apiKey ed enterpriseCredentials, concentrandoti sull'impostazione canuseclient menzionata nel report. Riproduci una chiamata Places autocomplete con entrambe le credenziali configurate e verifica che la richiesta completata utilizzi la chiave API anziché i parametri client e signature.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello,
We have an application that uses the Google API for PlacesAPI, TimeZoneApi and GeoCodingAPI.
Now we have a GeoContext spring bean defined where we set the API key and the Enterprise credentials. Which we inject in our service to use for the calls to the api's
// Config class
builder.apiKey(googleApiKey);
builder.enterpriseCredentials(googleClientId, googleCryptoKey);
builder.channel(googleChannel);
// Call in the service
PlaceAutocompleteRequest request = PlacesApi.placeAutocomplete(context, query, googleSesionKey).language("en").await();
Whenever we do a call to the placesAPI then it builds the url like below with the client and signature instead of the apiKey
this gives us back an error stating that an api key must be provided.
During debugging of the placesApi I notice that it adds this clientid instead of APIKey when it is provided and because of a setting canuseclient is set to true.
Is this a bug that the placesapi config is wrong as it should not seem to use this clientid? I am also not sure where this can be modified to false.
Thanks
- Lingua principale
- Java
- Stelle
- 1.8k
- Fork
- 972
- Merge medio
- 5h 7m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di googlemaps/google-maps-services-java
-
PlacesApi.placeDetails(context, placeId).await() interface errorForse già presa @madtriceps l’ha presa 99 giorni fa. Apertatriage me type: bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
-
[email protected]Apertatriage me type: feature request
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
-
Bagg hacmAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 5/100
googlemaps/google-maps-services-java#1059 · 1 reazione ·
-
Issue in java daAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
-
Issue in java daAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
Tutte le issue di googlemaps/google-maps-services-java
Issue simili
-
Area-UIUX Issue-Bug Issue-Easy (good first issue)
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
TeamAmaze/AmazeFileManager#4769 ·
I maintainer di solito rispondono entro 7 giorni
-
Expose SManga.memo & SChapter.memo fields in GraphQL APIs to support source-specific client featuresApertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Suwayomi/Suwayomi-Server#2551 ·
I maintainer di solito rispondono entro 9 giorni
-
CLI: enforce absolute ADB device paths in file and directory commandsForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
weaviate/java-client#631 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni