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

[feature request] add auth_token #2

Open
wessoll opened this issue May 20, 2014 · 1 comment
Open

[feature request] add auth_token #2

wessoll opened this issue May 20, 2014 · 1 comment

Comments

@wessoll
Copy link

wessoll commented May 20, 2014

It would be nice if you could add the authenticationToken to the add_device and delete_device actions. Otherwise there is no way of knowing which device_token corresponds to a particular user. You could easily do this by extracting the authenticationToken from the request header "Authorization" which consists out of "ApplePushNotifications yourAuthToken":

authenticationToken = request.headers["Authorization"]
authenticationToken["ApplePushNotifications "] = ""

Thnx for the repo btw.

@ankurp
Copy link
Owner

ankurp commented May 20, 2014

Yes that implementation I left it upto the developer depending on how they want to map the user to the devise. Let me see how I can incorporate it into the gem in the standard template.

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