metosin/compojure-api

Security as first class citizen (with Buddy samples)

Open

#122 opened on Jun 2, 2015

View on GitHub
 (11 comments) (0 reactions) (0 assignees)Clojure (1,120 stars) (149 forks)batch import
enhancementhelp wanted

Description

separate namespace compojure.api.buddy with registered dispatchers for making it easy to use them from c-api. Something like:

(context* "/api" []
  :authenticated? true
  (context* "/admin" []
    :auth-handlers [admin-access operator-access]
    ...))

EDIT 18.8.2015. Should be security in general. Goes for Ring-Swagger too.

Contributor guide