Third-party auth plugins for Biff; currently one monolith with optional password and invite-code support
- Add
com.ractiveware/biff-plugins-auth {:git/url "https://github.com/momerath42/biff-plugins-auth", :tag "v0.1.1"}
to your deps.edn - Require
[com.ractiveware.biff-plugins-auth :as bpa]
in your biff project's system-setup namespace (generally the eponymous one) - Replace
(biff/authentication-plugin {})
in yourfeatures
vector with(bpa/monolith {})
- If enabling passwords (as is the default), modify your project's
schema.clj
to include :user/password and :user/email-validated fields
See the monolith docstring for modified and additional options: src/com/ractiveware/biff_plugins_auth.clj
This is how the flow works, with invites and passwords enabled. Note that I'm allowing use of signup and signin pages to request a link/code, and that the user is immediately logged in when providing a valid password