metosin/compojure-api

Security as first class citizen (with Buddy samples)

Open

#122 opened on Jun 2, 2015

 (11 comments) (0 reactions) (0 assignees)Clojure (149 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (1,120 stars)
PR merge metrics
 (No merged PRs in 30d)

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