Sourse OneSignal: Authentication of OneSignal API changed to not allow User Auth key for notification requests #23535
Labels
area/connectors
Connector related issues
community
connectors/source/onesignal
python
Pull requests that update Python code
team/connectors-python
type/bug
Something isn't working
Environment
Current Behavior
The OneSignal 0.1.2 connector uses the User Auth Key (which is sort of a "global" key) to authenticate the API. This worked fine until 2023-02-21. However, OneSignal changed their authentication schema to only allow app-specific REST API Keys to authenticate. This is one key per OneSignal app - meaning we can't use this "global" key to authenticate ALL operations anymore.
This also means, we can't simply configure one key and sync ALL app notifications. We need to configure one key per app.
This change in authentication was confirmed by OneSignal support.
Expected Behavior
We'd need to have configuration options to set the app we want to sync as well as the respective rest api key. As there are also API operations / airbyte streams which still require the user auth key (like listing all apps), I propose having the following configuration options:
Then we'd need to change the behavior of the connector itself.
Logs
I'll not add the whole logs here, as the issue was confirmed by OneSignal support and the logs simply tell us that we make a bad request to OneSignl.
The main portion of the logs is:
Steps to Reproduce
Are you willing to submit a PR?
I'm happy to submit a PR - but I'd need the following question answered:
The text was updated successfully, but these errors were encountered: