OlivierBlanvillain / scalajs-transport

MIT License
25 stars 4 forks source link

Authentication and identity support #6

Open mkotsbak opened 9 years ago

mkotsbak commented 9 years ago

To be able to use this in any real projects, logins to the API must be supported, probably through a cookie/headers, and ability to get the user id of the authenticated user from withing API handlers.

A workaround is to add a login method that returns a session token that is passed to all other methods.

OlivierBlanvillain commented 9 years ago

I think identity support support is out of the scope of this project, my high level goal is to focus on transport mechanisms.

That being said, one could very well build identity support on top of the core API. It should be possible to exchange identification information and session tokens via a connection, and close the connection when things go wrong.

Now if you want to use Play, which already supports authentication, let's talk about it in #3.