Apollo 0.1.0 is on Maven Central!

Apollo is a Devise-like authentication library for Http4s: registration, login and sessions, password reset, and opt-in e-mail confirmation, with CSRF protection throughout. Pure FP — cats-effect, doobie, Twirl. It's split into three small modules so you only depend on what you use:

mvn"io.github.joshuakfarrar::apollo-core:0.1.0"
mvn"io.github.joshuakfarrar::apollo-http4s:0.1.0"
mvn"io.github.joshuakfarrar::apollo-doobie:0.1.0"

Out of the box it needs nothing but Postgres. Registration signs you straight in, and confirmation and reset codes print to the server log until you wire up a real mailer (I've helpfully bundled in my own Mailgun implementation).

The fastest way to try it is to use the giter8 template via Mill:

$ mill --interactive init joshuakfarrar/apollo.g8

That gives you a running webapp with login, registration, and password reset.

Also: you're reading this post through Apollo right now! Apollo has powered Tertulia for the last six months without a single 500 error.

https://github.com/joshuakfarrar/apollo

🎉