File tree 4 files changed +17
-5
lines changed
4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 30
30
clj-oauth/clj-oauth {:mvn/version " 1.5.2" }; copied over from REST
31
31
32
32
; pink-gorilla dependencies
33
- org.pinkgorilla/modular {:mvn/version " 0.0.39 " }
33
+ org.pinkgorilla/modular {:mvn/version " 0.0.40 " }
34
34
org.pinkgorilla/permission {:mvn/version " 0.0.15" }
35
35
; TODO: move frontend->somewhere else.
36
36
; modular/frontend {:local/root "../frontend" :deps/manifest :deps}
37
- org.pinkgorilla/websocket {:mvn/version " 0.0.8 " }}
37
+ org.pinkgorilla/websocket {:mvn/version " 0.0.9 " }}
38
38
39
39
40
40
:aliases
Original file line number Diff line number Diff line change 15
15
modular.oauth2.local.handler
16
16
modular.oauth2 ; side-effects
17
17
]
18
+
18
19
:api-routes {" oauth2/" {[" start/" :provider ] {:get modular.oauth2.handler/handler-oauth2-start-wrapped}
19
20
" token" {:get modular.oauth2.handler/token-handler-wrapped}
20
21
; ["redirect/" :provider] {:get :oauth2/redirect}
Original file line number Diff line number Diff line change 3
3
#?(:clj [taoensso.timbre :refer [debug info warn error]])
4
4
#?(:cljs [taoensso.timbre :refer-macros [debug info warn error]])
5
5
#?(:clj [nano-id.core :refer [nano-id]])
6
- #?(:clj [modular.config :as config])
7
6
#?(:clj [modular.persist.protocol :refer [save loadr]])
7
+ #?(:clj [modular.oauth2.config :as config])
8
8
#?(:clj [modular.oauth2.local.handler])
9
9
#?(:cljs [modular.oauth2.request])
10
10
#?(:cljs [modular.oauth2.user.subscriptions])
16
16
17
17
#?(:clj
18
18
(defn get-config-server [server-profile-kw]
19
- (config/get-in- config [ :oauth2 : server server-profile-kw] )))
19
+ (config/get-config- server server-profile-kw)))
20
20
21
21
#?(:clj
22
22
(defn get-config-user
23
23
([]
24
24
(get-config-user :default ))
25
25
([user-id-kw]
26
- (config/get-in- config [ :oauth2 : user user-id-kw] )))
26
+ (config/get-config- user user-id-kw)))
27
27
28
28
;
29
29
)
Original file line number Diff line number Diff line change 35
35
; ; modular.oauth2.authorize.start-handler
36
36
; ; modular.oauth2.middleware
37
37
38
+ (defn get-config-server [server-profile-kw]
39
+ (get-in-config [:oauth2 :server server-profile-kw]))
40
+
41
+
42
+ (defn get-config-user
43
+ ([]
44
+ (get-config-user :default ))
45
+ ([user-id-kw]
46
+ (get-in-config [:oauth2 :user user-id-kw])))
47
+
48
+
38
49
(defn entire-config []
39
50
@config-atom )
40
51
You can’t perform that action at this time.
0 commit comments