Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question]: Identity Verification Public Key #35

Open
1 task done
bismark64 opened this issue Jul 29, 2024 · 3 comments
Open
1 task done

[question]: Identity Verification Public Key #35

bismark64 opened this issue Jul 29, 2024 · 3 comments

Comments

@bismark64
Copy link

How can we help?

I'm trying to use the fetch_user endpoint using an external ID. When performing the request I'm getting a 401 error code and the following error:

"The app is missing the Identity Verification public key. Please generate one in the dashboard"

I don't see any Identity Verification public key in the dashboard nor I see anything like that in the docs: https://documentation.onesignal.com/reference/view-user

Code of Conduct

  • I agree to follow this project's Code of Conduct
@NoahGrumman
Copy link

Also seeing this

@bismark64
Copy link
Author

@NoahGrumman I got in contact with OneSignal support and apparently they've changed the auth header, this is what they replied back:

"I assume the request you're making here has an Authorization header using Bearer but this should be Basic so please try the same request using Authorization header with Basic.

Sorry for the confusion here, these endpoints will now require the Authorization: Basic header added into the requests in order to ensure there are no concerns with the ability of bad actors to make requests with potentially guessable values stored in external_id aliases.

Going forward :
View User and Update User are going to require authentication unless the alias_label is onesignal_id.
Delete User is going to always require authentication."

@sherwinski
Copy link
Contributor

Hi @bismark64,

Can you confirm if this is still an issue for you? It would also be helpful to know if you have Identity Verification active for your app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants