bootzooka icon indicating copy to clipboard operation
bootzooka copied to clipboard

JWTs and Satellizer

Open 0xdevalias opened this issue 9 years ago • 3 comments

It would be super awesome if the auth side of bootzooka was using JWTs, and could support something like Satellizer as a drop in. The old cookie based auth method is a bit dated, and makes 'api first' applications outside of the browser annoyingly complicated.

Seems there was some talk on google groups about JWTs in relation to akka-http-session too.

For the backend part of JWTs:

  • https://github.com/sahat/satellizer/wiki/Signup
  • https://github.com/sahat/satellizer/wiki/Login-with-Email-and-Password
  • https://github.com/sahat/satellizer/tree/master/examples/server/java
  • JWT lib: Nimbus-Jose-JWT (Alt, Doc)

Working on implementing this myself currently, so if you want it, happy to share the bits (won't PR unless you really want though, as I will probably be ripping out the current session stuff from mine)

0xdevalias avatar Sep 07 '15 01:09 0xdevalias

Put together my version and thrown the code up as a gist if you're interested. Feel free to pick/choose/incorporate as much as you want: https://gist.github.com/alias1/316ee1a7cfc0bbe9ec8d

0xdevalias avatar Sep 11 '15 05:09 0xdevalias

Thanks! I guess that would be best to add to akka-http-session, but definitely having some code ready will be useful :)

adamw avatar Sep 17 '15 10:09 adamw

Any further thoughts on this issue?

colincgn avatar Sep 09 '16 02:09 colincgn