r/Clojure • u/jacobobryant • Nov 23 '22
Biff tutorial: build a chat app step-by-step
https://biffweb.com/p/tutorial/3
7
u/frankieche Nov 23 '22
This is great!
Clojure projects definitely are missing tutorials like this. Thank you!
1
u/jayceedenton Nov 24 '22
Are there any plans for OAuth2/OIDC support in Biff? I love the project but email for sign-in is a bit off-putting in some contexts. I'd love to be able to just use Auth0 with Biff.
3
u/jacobobryant Nov 24 '22
It is on the roadmap: Support more authentication methods
In the mean time, you can always add other authentication methods yourself--Biff shouldn't get in the way at least. The current auth code is included in the template part of Biff, i.e. it's copied into new projects rather than being provided as a library dependency. See these files:
https://github.com/jacobobryant/biff/blob/master/example/src/com/example/feat/auth.clj
https://github.com/jacobobryant/biff/blob/master/example/src/com/example/feat/home.clj
https://github.com/jacobobryant/biff/blob/master/example/src/com/example/middleware.clj
So you can replace that with whatever you need. Even when I do get around to working on authentication again, I'll probably start out by just writing a how-to article anyway, and then add the code into Biff if/when it feels appropriate.
2
2
6
u/mac Nov 23 '22
Such excellent work. Biff appears very practical, approachable and yet powerful. Quite an achievement.