This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-30
Channels
- # aws (2)
- # beginners (139)
- # boot (9)
- # cider (1)
- # clara (2)
- # cljs-dev (35)
- # cljsrn (3)
- # clojure (112)
- # clojure-dusseldorf (9)
- # clojure-greece (6)
- # clojure-italy (13)
- # clojure-russia (160)
- # clojure-seattle-old (1)
- # clojure-uk (79)
- # clojurescript (85)
- # clojutre (1)
- # community-development (11)
- # core-async (32)
- # cryogen (2)
- # cursive (5)
- # data-science (16)
- # datomic (2)
- # events (1)
- # fulcro (29)
- # funcool (1)
- # graphql (4)
- # immutant (5)
- # instaparse (20)
- # jobs (2)
- # juxt (6)
- # leiningen (11)
- # luminus (21)
- # lumo (1)
- # off-topic (7)
- # onyx (20)
- # parinfer (33)
- # pedestal (4)
- # re-frame (41)
- # reagent (34)
- # ring-swagger (14)
- # rum (5)
- # spacemacs (9)
- # specter (11)
- # sql (14)
- # test-check (3)
- # yada (20)
Hi I have a question on security. I’m trying to use :securityDefinitions, I’ve configured one and now I want to apply it to my routes. in looking at the swagger spec i’m supposed to set up a security block or somethign that refers to the securityDefinition(s). Does anyone have any examples of this? Basically, I’ve gotten JWT working one route, but now I want to apply it globally
@eoliphant I have this in my api
Can’t import ring.util.response/get-charset, try updating to Ring 1.6.0+
Exception in thread "main" java.lang.ExceptionInInitializerError
at clojure.main.<clinit>(main.java:20)
Caused by: java.lang.NullPointerException, compiling:(ring/util/http_response.clj:1142:1)
at clojure.lang.Compiler.load(Compiler.java:7442)
at clojure.lang.RT.loadResourceScript(RT.java:374)
at clojure.lang.RT.loadResourceScript(RT.java:365)
$ lein deps :tree | grep ring
[com.amazonaws/aws-java-sdk-marketplacemeteringservice "1.11.98"]
[metosin/ring-http-response "0.9.0"]
[metosin/ring-swagger-ui "2.2.10"]
[metosin/ring-swagger "0.24.1"]
[metrics-clojure-ring "2.9.0" :exclusions [[org.slf4j/slf4j-api]]]
[ring-cors "0.1.8"]
[ring/ring-core "1.6.2"]
[ring/ring-codec "1.0.1"]
Hmm, @abarylko how do you guys actually use it ? I added the :security [:bearer]
, the generated swagger endpoints have a little exclamation point and when you click it you can see a button for “Authorization” but it doesn’t do anything. I’d kind of thought that that config would do somethng like add an authorization header param to each endpoint