Aiven-Open / Aiven-Open/salesforce-connector-for-apache-kafka
Get `instance_url` from OAuth login
- 主要言語
- Java
- スター
- 1
- フォーク
- 3
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 5
説明
# What is currently missing?
We use the OAuth login flow [fetches the `access_token`](https://github.com/Aiven-Open/salesforce-connector-for-apache-kafka/blob/60d379fc2c0bb69d36363b199cca76eade53557e/common/src/main/java/io/aiven/kafka/connect/salesforce/common/auth/credentials/Oauth2Login.java#L75) credentials, and the response looks like:
```
{ "access_token":"MY-SECRET-TOKEN-FOR-API-CALLS",
"signature":"SIG-STUFF",
"scope":"api",
"instance_url":"https://orgfarm-EXAMPLE-dev-ed.develop.my.salesforce.com",
"id":"https://login.salesforce.com/id/SOME/ID",
"token_type":"Bearer",
"issued_at":"ETC"}
```
# How could this be improved?
If the `salesforce.uri` in the connector configuration isn't specified, we fall back to the `instance_url` from here.
# Is this a feature you would work on yourself?
* [ ] I plan to open a pull request for this feature
コントリビューションガイド
評価
この issue はまだ評価されていません。