Skip to content

Conversation

redreceipt
Copy link
Contributor

@redreceipt redreceipt commented Jan 3, 2025

Checklist

  • I've run bundle exec rspec from the root directory to see all new and existing tests pass
  • I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
  • I see several green ci/circleci builds in the "All checks have passed" section of my PR (connect CircleCI to GitHub if not)
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary.
  • I've added or updated relevant unit tests.

Motivation and Context

Onesignal killed the old user auth keys, they no longer work and you can't create new ones. Here's a conversation with their support...

Me:

where can I create a user authorization key for use with the API?

my key I was using is no longer working

Them:

Hi there,
Thank you for reaching out!

On the 14th of November 2024, we announced the new rich API key system described above and started deprecating legacy API keys. The legacy user auth keys will be deprecated on the 1st of March 2025, and legacy app REST API keys will be deprecated in Q1 2026. ​https://documentation.onesignal.com/docs/keys-and-ids#migrating-from-legacy-api-keys

  1. This is the guide on generating the new rich auth key. https://documentation.onesignal.com/docs/keys-and-ids#api-keys ​Instead of using "Basic { REST API Key}", the new authentication key would be using this format "Key {Rich_Authentication_Key}". This will replace the REST API key. ​
  2. For APIs using the user auth key, it will be replaced with the Organization API key: ​https://documentation.onesignal.com/docs/keys-and-ids#organization-api-key A sample request via the API can be found here along with other information: https://documentation.onesignal.com/reference/quick-start-api-guide#rest-api-key Let us know if you have any additional questions.
    Thanks.
Screenshot 2025-01-03 at 12 34 44 PM

Description

Changed the auth header as per their instructions

Testing Steps

Onesignal killed the old user auth keys, they no longer work. Here's a conversation with their support...

Me: where can I create a user authorization key for use with the API?
Me: my key I was using is no longer working

Them: Hi there,
Thank you for reaching out!
​
On the 14th of November 2024, we announced the new rich API key system described above and started deprecating legacy API keys. The legacy user auth keys will be deprecated on the 1st of March 2025, and legacy app REST API keys will be deprecated in Q1 2026.
​https://documentation.onesignal.com/docs/keys-and-ids#migrating-from-legacy-api-keys
1. This is the guide on generating the new rich auth key.
https://documentation.onesignal.com/docs/keys-and-ids#api-keys
​Instead of using "Basic { REST API Key}", the new authentication key would be using this format "Key {Rich_Authentication_Key}". This will replace the REST API key.
​
2. For APIs using the user auth key, it will be replaced with the Organization API key:
​https://documentation.onesignal.com/docs/keys-and-ids#organization-api-key
A sample request via the API can be found here along with other information:
https://documentation.onesignal.com/reference/quick-start-api-guide#rest-api-key
Let us know if you have any additional questions.
Thanks.
@AliSoftware
Copy link
Contributor

Thanks for the contribution!

@AliSoftware AliSoftware merged commit 33921a9 into fastlane:master Mar 13, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants