cebes / cebes-server

Cebes servers
https://cebes.github.io
Apache License 2.0
2 stars 0 forks source link

Consider JWT for http authentication #121

Open phvu opened 6 years ago

phvu commented 6 years ago

JWT is supported in akka-http-session: https://github.com/softwaremill/akka-http-session since v0.5

Probably shouldn't use com.softwaremill.akka-http-session % jwt because that will pull in a dependency on json4s, while all of Cebes use spray.

A better idea is to provide a custom serializer/deserializer based on spray, which encode session data in the JWT format.