Fork me on GitHub
#pedestal
<
2017-03-03
>
julianwegkamp12:03:53

Are there examples of handling authentication with pedestal?

mtnygard13:03:42

@julianwegkamp I know some people have had success using Buddy from a Pedestal service. Buddy-auth uses Ring middleware, but it's trivial to turn that into an interceptor. You might get some milage out of http://rundis.github.io/blog/2015/buddy_auth_part2.html

julianwegkamp14:03:55

Thx @mtnygard. I will take a look at it.

ddeaguiar14:03:05

I’ve worked with both. Buddy requires some minor work to port middleware but it’s no big deal

mtnygard14:03:49

Geheimtur is new to me. Will check it out, thanks @ddeaguiar

ddeaguiar14:03:16

IIRC, I preferred Buddy when working with JWT

julianwegkamp14:03:09

Thx. It surprises me that there isn't a go-to solution for pedestal. Isn't (some form of) authentication a standard use case for a web application server?

ddeaguiar14:03:02

@julianwegkamp there was a recent discussion re: this in the pedestal-users mailing list. See https://groups.google.com/forum/#!topic/pedestal-users/MJL0h4ts_mk for Paul’s thoughts

julianwegkamp15:03:30

FYI I just added my 2 ct to the discussion in pedestal-users

baris18:03:45

Hi all, I’m playing with vase/pedestal. What’s the best way to coerce a json value to timestamp/edn-date/java.util.Date within a #vase/transact? I'm looking for sth like the :edn-coerce […] which is used by #vase/query. Do I really have to use an interceptor for all my edn values like #inst or #uuid within a #vase/transact?

baris18:03:29

Like the one in the petstore-full example?

mtnygard19:03:50

Hi @baris. I'm glad you're giving Vase a try. I'm going to dig in to your question together with Paul deGrandis (the main author). He's not on Slack so I'll come back with an answer in a while.

mtnygard20:03:27

@baris It's definitely a limitation of the Transact literal right now. I've entered issue https://github.com/cognitect-labs/vase/issues/45 to address that. It should accept EDN and Transit as well as JSON.

baris20:03:36

@mtnygard that would be a great enhancement. For the moment I’m using custom interceptors

mtnygard20:03:49

@baris You might also be able to use the #vase/conform interceptor to do the coercion. That way you don't have to write custom interceptors for each transaction.

baris20:03:15

@mtnygard thanks for the hint. I’ll check the #vase/conform capabilities