This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-30
Channels
- # beginners (11)
- # boot (18)
- # cider (36)
- # cljs-dev (17)
- # cljsrn (5)
- # clojure (144)
- # clojure-android (4)
- # clojure-art (1)
- # clojure-brasil (1)
- # clojure-dev (5)
- # clojure-india (1)
- # clojure-russia (13)
- # clojure-spec (4)
- # clojurescript (15)
- # code-art (2)
- # cryogen (1)
- # defnpodcast (1)
- # hoplon (1)
- # leiningen (5)
- # off-topic (18)
- # om (4)
- # onyx (25)
- # parinfer (1)
- # pedestal (6)
- # portkey (1)
- # re-frame (16)
- # reagent (1)
- # uncomplicate (1)
- # unrepl (10)
- # yada (16)
In a Vase app, can I query Datomic from an interceptor? If so, where do I find the Datomic object? It does not seem to be in the context passed to the interceptor.
@deg a Datomic connection and db should be accessible on the request. It’s attached by the insert-datomic
interceptor. Refer to https://github.com/cognitect-labs/vase/blob/ddb45e042cd12f1eb9e73b227727d46f81e3c0a6/src/com/cognitect/vase/routes.clj#L41 and https://github.com/cognitect-labs/vase/blob/ddb45e042cd12f1eb9e73b227727d46f81e3c0a6/src/com/cognitect/vase/datomic.clj#L33
Thanks. I see it now, staring me in the face. 'scuse me one second while I tease myself for not seeing it earlier.
Is vase suitable publishing directly to the internet with appropriate auth, or is it intended to sit behind the firewall as a microservice that is consumed by other systems?
I'm looking at https://github.com/cognitect-labs/vase/blob/f49c4ac9299ef48e57a9613da089784ddd08af5c/docs/design.md#authorization-and-external-requests
If I want to apply authz to several resources without duplicating that code (and possibly forgetting it), should I split those resources into their own .edn
file and apply a :vase.api/interceptors
to that file?