Re: [ANN] clojure-sec

2013-11-18 Thread wm . mark . lee
This list seems somewhat inactive, which I find a bit surprising, but I am very interested in one particular aspect of security when I build Clojure apps. Right now my interest is in building REST web services and web applications backed by a relational database with something like Angular or

Friend roles stored in a database table

2013-11-17 Thread wm . mark . lee
Hello, As a long-time Java web developer, I've now been doing clojure for a few days so there's a lot I don't get yet, but I do have an end-to-end working Compojure web application with a UI, JSON web services, and working form-based authentication using Friend - originally using the in-memory

Re: Friend roles stored in a database table

2013-11-17 Thread wm . mark . lee
Hello, some inline-comments... On Sunday, 17 November 2013 11:25:38 UTC, David Della Costa wrote: As far as actually storing the roles in the database, they are simply a stringified set of namespace-qualified keywords, like so: #{:my-app-ns/user} #{:my-app-ns/admin

Re: Friend roles stored in a database table

2013-11-17 Thread wm . mark . lee
Sometimes you can't see the wood for the trees I guess, I have it working with this trivial change: (defn credential-fn [username] (update-in (read-user username) [:roles] read-string)) Still learning the basics... On Sunday, 17 November 2013 17:04:27 UTC, wm.ma...@gmail.com wrote: