Aiven-Open / Aiven-Open/salesforce-connector-for-apache-kafka

Get `instance_url` from OAuth login

Offen
#60 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
1
Forks
3
Ø Merge
1 T. 6 Std.
Gemergte PRs (30 T.)
5

Beschreibung

# 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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.