Places api uses client id (enterprise credentials) instead of apikey when both are configured
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java
- 領域
- api, authentication
調査の方向性
まず、apiKey と enterpriseCredentials の両方で構成された GeoContext からの PlacesApi リクエストの構築を追跡し、レポートで言及されている canuseclient 設定に注目します。両方の認証情報を構成した状態で Places autocomplete 呼び出しを再現し、完成したリクエストが client および signature パラメータではなく API キーを使用することを確認します。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Java
- スター
- 1.8k
- フォーク
- 972
- 平均マージ
- 5時間 7分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
googlemaps/google-maps-services-java のほかの issue
-
PlacesApi.placeDetails(context, placeId).await() interface error対応中かも @madtriceps が 99 日前に担当しました。 オープンtriage me type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
-
[email protected]オープンtriage me type: feature request
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
-
Bagg hacmオープン
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
googlemaps/google-maps-services-java#1059 · リアクション 1 件 ·
-
Issue in java daオープン
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
-
Issue in java daオープン
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
googlemaps/google-maps-services-java の issue をすべて見る
似ている issue
-
Area-UIUX Issue-Bug Issue-Easy (good first issue)
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
TeamAmaze/AmazeFileManager#4769 ·
メンテナーはふだん 7 日以内に返信
-
Expose SManga.memo & SChapter.memo fields in GraphQL APIs to support source-specific client featuresオープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Suwayomi/Suwayomi-Server#2551 ·
メンテナーはふだん 9 日以内に返信
-
CLI: enforce absolute ADB device paths in file and directory commands対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
weaviate/java-client#631 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信