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

Allow sending messages of third party apps on behalf of user #21

Open
Niels-Be opened this issue Jul 21, 2017 · 1 comment
Open

Allow sending messages of third party apps on behalf of user #21

Niels-Be opened this issue Jul 21, 2017 · 1 comment

Comments

@Niels-Be
Copy link
Owner

Niels-Be commented Jul 21, 2017

Allow signing api requests with user tokens to allow third party apps to act on behalf of a user.
We also need a way to get a token in the frontend.
To get a token: auth.currentUser.getIdToken().then((token)=>{ ... })

It might also be useful to implement an extend notify endpoint so third party apps can specify a custom notify message. e.g. Lunch App: "%u wants to eat at xxx"

Niels-Be added a commit that referenced this issue Jul 21, 2017
@Niels-Be
Copy link
Owner Author

Curl example:

curl -H 'Authorization: bearer eyJhb[...]6wj5vIQ' localhost:8080/api/v1/subscriptions 

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

No branches or pull requests

1 participant