metosin/compojure-api

Security as first class citizen (with Buddy samples)

开放

#122 创建于 2015年6月2日

 (11 条评论) (0 个反应) (0 位负责人)Clojure (149 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (1,120 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南