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]: Very confused about externalId and security #1188

Open
k2xl opened this issue Aug 23, 2024 · 1 comment
Open

[Question]: Very confused about externalId and security #1188

k2xl opened this issue Aug 23, 2024 · 1 comment

Comments

@k2xl
Copy link

k2xl commented Aug 23, 2024

How can we help?

I'm hacking on a mobile app and trying to figure out how to sync external id and email with the user that registered for the notifications. However, based on the docs - it seems that the client can set this...

In other words, can any client call OneSignal.User.addEmail and then pass in anyone else's email?? Wouldn't this mean they are able to steal notifications from others if email is used as a targeting?

I'm creating a backend server endpoint as I would like to do this linking server side using the oneSignalId (i.e. i pass in the oneSignalId to the endpoint and then link the currently logged in user). Since there is a server rest api key that seems to be safer...

However, the SDK still seems to allow it locally so unclear how to stop someone from doing this.

@netizen-ais
Copy link

I've asked that last year, they said coming soon

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

2 participants