pac4j for clojure ring + reitit WIP

12 views
Skip to first unread message

Ioan Eugen Stan

unread,
Jun 27, 2024, 11:49:12 PM6/27/24
to Pac4j development mailing list
Salut,

I've been working on integrating pac4j into Clojure Ring.
https://github.com/ring-clojure/ring/blob/master/SPEC.md and hopefully with reitit routing library for declarative authorization https://github.com/metosin/reitit .

I have implemented FormClient auth and authorization using an in-memory store. 
I would like to finish the integration with reitit and I would like to make it open source when it's done, but I do need some help.

I've been following the somewhat scarce documentation on https://www.pac4j.org/docs/how-to-implement-pac4j-for-a-new-framework.html

I believe I understood how some of the components should be used but it's not clear for all of them.

I can host the implementation on my GH account - at least initially - since I don't think if people pac4j devs would want to take over maintenance :) .

Some initial feedback:
There is a missmatch between pac4j mutable API's and clojure's (ring) immutable implementation of HTTP protocol.

I will come back with more specific questions.
This email is more to announce intention and to see who, if any, are willing to help and to what extent. 

Regards,
Eugen

Jérôme LELEU

unread,
Jun 28, 2024, 3:21:55 AM6/28/24
to Ioan Eugen Stan, Pac4j development mailing list
Hi,

Your Clojure Ring pac4j implementation can be hosted as a pac4j project if:
- the implementation is quite complete
- you are willing to maintain it over time as I don't know Clojure Ring.

Yes, the documentation is quite limited, but you can take a look at reference implementations like: https://github.com/pac4j/jee-pac4j/tree/master/javaee-pac4j or https://github.com/pac4j/play-pac4j/tree/master/shared/src + demos

I'm on holiday abroad for two weeks, but I will help you when I'm back.

Thanks.
Best regards,
Jérôme


--
You received this message because you are subscribed to the Google Groups "Pac4j development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pac4j-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pac4j-dev/765c0f6b-0e16-4fc5-9274-3e93f57ccbd6n%40googlegroups.com.

Ioan Eugen Stan

unread,
Jun 28, 2024, 6:20:07 AM6/28/24
to Pac4j development mailing list
Thank you,

I will do it privatly first and when it's ready we can transfer it to pac4j.
Thank you for the links I did check out the source code to understand better what is happening.

Enjoy your vacation. I will post questions here. 
Don't feel obligated to reply during vacation.
I can wait, it's important we get this right, not fast :) .

Regards,
Eugen
Reply all
Reply to author
Forward
0 new messages