Skip to content

Commit

Permalink
Merge pull request #73 from Flexiana/auth_and_acl
Browse files Browse the repository at this point in the history
add auth and acl back
  • Loading branch information
narocath authored Apr 19, 2021
2 parents fcc05f3 + ac31468 commit d272256
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject com.flexiana/framework "0.1.9"
(defproject com.flexiana/framework "0.2.0"
:description "Framework"
:url "https://github.com/Flexiana/framework"
:license {:name "FIXME" :url "FIXME"}
Expand Down
12 changes: 6 additions & 6 deletions src/framework/components/app/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -120,20 +120,20 @@
(defn mbuild-state
[{:keys [deps
http-request
config]}]
acl-cfg]}]
(m/>>= (xiana/ok (create-empty-state))
(comp xiana/ok
#(assoc %
:deps deps
:request http-request))
#(if config
(acl-builder/init % config)
#(if acl-cfg
(acl-builder/init % acl-cfg)
%)))

(defn ->app
[{_acl-cfg :acl-cfg
[{acl-cfg :acl-cfg
session-backend :session-backend
auth :auth
auth :auth
:as config}]
(with-meta config
`{component/start ~(fn [{:keys [router db
Expand All @@ -148,7 +148,7 @@
:session-backend session-backend}
state-built (mbuild-state {:deps deps
:http-request http-request
:config config
:acl-cfg acl-cfg
:auth auth})
router-enter (select-interceptors router-interceptors :enter identity)
router-leave (select-interceptors router-interceptors :leave reverse)
Expand Down

0 comments on commit d272256

Please sign in to comment.