Skip to content

Commit

Permalink
update jetty9 dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
d-t-w committed Dec 9, 2024
1 parent d16d134 commit 071ba2f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions common/src/slipway/security.clj
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
(if config
(when (slurp config)
(doto (JAASLoginService. realm) (.setConfiguration (Configuration/getConfiguration))))
(throw (ex-info (str "start with -Djava.security.auth.login.config=/some/path/to/jaas.config to use Jetty/JAAS auth provider") {})))))
(throw (ex-info "start with -Djava.security.auth.login.config=/some/path/to/jaas.config to use Jetty/JAAS auth provider" {})))))

(defmethod login-service "hash"
[{::keys [realm hash-user-file]}]
(log/infof "initializing HashLoginService - realm: %s, realm file: %s" realm hash-user-file)
(if hash-user-file
(when (slurp hash-user-file)
(HashLoginService. realm hash-user-file))
(throw (ex-info (str "set the path to your hash user realm properties file") {}))))
(throw (ex-info "set the path to your hash user realm properties file" {}))))

(defn user
[^Request base-request]
Expand Down
6 changes: 3 additions & 3 deletions slipway-jetty9/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
:license {:name "MIT License"
:url "https://github.com/factorhosue/slipway/blob/main/LICENSE"}

:profiles {:dev {:dependencies [[com.fasterxml.jackson.core/jackson-core "2.17.2"] ;; required for internal inconsistency within clj-kondo, kept at latest for CVE avoidance
[clj-kondo "2023.12.15"] ;; https://github.com/clj-kondo/clj-kondo/issues/2277 leave at this version until we move to Clojure 1.12.x and can fix
:profiles {:dev {:dependencies [[com.fasterxml.jackson.core/jackson-core "2.18.2"] ;; required for internal inconsistency within clj-kondo, kept at latest for CVE avoidance
[clj-kondo "2024.11.14"]
[clj-http "3.13.0"]
[ch.qos.logback/logback-classic "1.3.14"] ;; Logback 1.3.x supports the Java EE edition whereas logback 1.4.x supports Jakarta EE, otherwise the two versions are feature identical. The 1.5.x continues the 1.4.x series but with logback-access relocated to its own repository.
[ring/ring-anti-forgery "1.3.1"]
Expand All @@ -21,7 +21,7 @@
"kondo" ["with-profile" "+smoke" "run" "-m" "clj-kondo.main" "--lint" "src:common/src:test:common/test" "--parallel"]
"fmt" ["with-profile" "+smoke" "cljfmt" "check"]}

:dependencies [[org.clojure/clojure "1.11.4"]
:dependencies [[org.clojure/clojure "1.12.0"]
[org.clojure/tools.logging "1.3.0"]
[ring/ring-servlet "1.9.6"]
[com.taoensso/sente "1.17.0"]
Expand Down
2 changes: 2 additions & 0 deletions slipway-jetty9/src/slipway/websockets.clj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

(extend-protocol common.ws/WebSocketSend

#_:clj-kondo/ignore
(Class/forName "[B")
(-send!
([ba ws]
Expand Down Expand Up @@ -70,6 +71,7 @@

(extend-protocol common.ws/WebSocketPing

#_:clj-kondo/ignore
(Class/forName "[B")
(-ping! [ba ws] (common.ws/-ping! (ByteBuffer/wrap ba) ws)))

Expand Down

0 comments on commit 071ba2f

Please sign in to comment.