Skip to content

Rewrite as wrapper around Java impl #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
6d6b8c9
Add simple Java wrapper
colinphill-mdsol Jun 13, 2024
ab94235
WIP
colinphill-mdsol May 14, 2025
9a9b4d7
Remove legacy implementation
colinphill-mdsol May 14, 2025
e92052f
Major version bump
colinphill-mdsol May 14, 2025
646ad26
Formatting
colinphill-mdsol May 14, 2025
094c3a1
Move test dep to test profile
colinphill-mdsol May 14, 2025
3467fb8
Change alias in test
colinphill-mdsol May 14, 2025
6eca893
Add warn-on-reflection
colinphill-mdsol May 14, 2025
42bad20
Extract conversions to separate namespace
colinphill-mdsol May 14, 2025
c665989
Add authenticator
colinphill-mdsol May 15, 2025
809ae1b
Remove outdated comment
colinphill-mdsol May 15, 2025
32f1e18
Add v1 test cases
colinphill-mdsol May 15, 2025
9b6e86b
Add humane-test-output
colinphill-mdsol May 15, 2025
50fa0df
Add middleware test
colinphill-mdsol May 15, 2025
f6ade28
Remove RCF
colinphill-mdsol May 15, 2025
00aa114
Add/revise docstrings
colinphill-mdsol May 15, 2025
6cdb622
Add warn-on-reflection
colinphill-mdsol May 15, 2025
67183a3
Remove commented out deps
colinphill-mdsol May 15, 2025
a6bdecd
Remove print statement
colinphill-mdsol May 15, 2025
741bf63
Add server middleware with simple test case
colinphill-mdsol May 15, 2025
0889bee
Deduplicate test code
colinphill-mdsol May 15, 2025
2ca247f
Add negative test case for server middleware
colinphill-mdsol May 15, 2025
40b115d
Prove that on-auth-failure receives request
colinphill-mdsol May 15, 2025
8a5b620
Assert nil exception on valid=false
colinphill-mdsol May 15, 2025
eba3665
Prove that on-auth-failure receives exception
colinphill-mdsol May 15, 2025
6cd4153
Change on-auth-failure to accept a map
colinphill-mdsol May 15, 2025
04f9004
Add javadoc
colinphill-mdsol May 15, 2025
da8802f
Use exception message for response body
colinphill-mdsol May 15, 2025
a4ed6b9
Add test for default message on auth failure
colinphill-mdsol May 15, 2025
ec8d54a
Remove unused dependency
colinphill-mdsol May 15, 2025
1cf347e
Fix MD rendering of docstring
colinphill-mdsol May 15, 2025
d4ba62f
Fix MD rendering of docstring
colinphill-mdsol May 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .clj-kondo/config.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{:linters {:aliased-namespace-symbol {:level :warning}
:case-symbol-test {:level :warning}
:condition-always-true {:level :warning}
:bb.edn-task-missing-docstring {:level :warning}
:docstring-no-summary {:level :warning}
:docstring-leading-trailing-whitespace {:level :warning}
:dynamic-var-not-earmuffed {:level :warning}
:equals-false {:level :warning}
:equals-true {:level :warning}
:def-fn {:level :warning}
:reduce-without-init {:level :warning}
:keyword-binding {:level :warning}
:main-without-gen-class {:level :error}
:minus-one {:level :warning}
:missing-docstring {:level :warning}
:plus-one {:level :warning}
:redundant-fn-wrapper {:level :warning}
:redundant-call {:level :warning}
:refer {:level :warning
:exclude [clojure.test]}
:single-key-in {:level :warning}
:shadowed-var {:level :warning}
:unused-alias {:level :warning}
:used-underscored-binding {:level :warning}
:unsorted-imports {:level :warning}
:unsorted-required-namespaces {:level :warning}
:warn-on-reflection {:level :warning}
:unresolved-namespace {:level :warning}}}
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "mauth-protocol-test-suite"]
path = mauth-protocol-test-suite
url = [email protected]:mdsol/mauth-protocol-test-suite.git
1 change: 1 addition & 0 deletions mauth-protocol-test-suite
54 changes: 28 additions & 26 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
(defproject clojure-mauth-client "2.0.9-SNAPSHOT"
(defproject clojure-mauth-client "3.0.0-SNAPSHOT"
:description "Clojure Mauth Client"
:url "https://github.com/mdsol/clojure-mauth-client"
:license {:name "MIT"
:url "https://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.12.0"]
[xsc/pem-reader "0.1.1"]
[digest "1.4.10"]
[org.clojure/data.codec "0.1.1"]
[clojure-interop/java.security "1.0.5"]
[http-kit "2.4.0-alpha2"]
[clj-http "3.13.0"]
[org.clojure/data.json "2.5.0"]
[javax.xml.bind/jaxb-api "2.3.1"]]
:dependencies [[camel-snake-kebab "0.4.3"]
[com.cnuernber/charred "1.033"]
[org.clojure/clojure "1.12.0"]
[com.mdsol/mauth-authenticator "19.0.0"]
[com.mdsol/mauth-signer "19.0.0"]]

:profiles {:test {:dependencies [[com.mdsol/mauth-authenticator-apachehttp "19.0.0"]
[pjstadig/humane-test-output "0.8.3"]]
:injections [(require 'pjstadig.humane-test-output)
(pjstadig.humane-test-output/activate!)]}}

:repositories [["maven-prod-virtual" {:url "https://mdsol.jfrog.io/mdsol/maven-prod-virtual"
:username :env/artifactory_username
:password :env/artifactory_password}]]

:deploy-repositories [["releases"
{:url "https://clojars.org/repo"
Expand All @@ -26,23 +31,20 @@
["vcs" "push"]]

:aliases {"bump!" ^{:doc "Bump the project version number and push the commits to the original repository."}
["do"
["vcs" "assert-committed"]
["change" "version" "leiningen.release/bump-version"]
["vcs" "commit"]
["vcs" "push"]]}
["do"
["vcs" "assert-committed"]
["change" "version" "leiningen.release/bump-version"]
["vcs" "commit"]
["vcs" "push"]]}

:target-path "target/%s"
:profiles {:uberjar {:aot :all
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]}}

:jvm-opts ~(concat
[] ;other opts...
(if (let [v (-> (System/getProperty "java.version")
(clojure.string/split #"[.]")
first
Integer.)]
(and (>= v 9) (< v 11)))
["--add-modules" "java.xml.bind"]
[]))
:aot :all)
[] ;other opts...
(if (let [v (-> (System/getProperty "java.version")
(clojure.string/split #"[.]")
first
Integer.)]
(and (>= v 9) (< v 11)))
["--add-modules" "java.xml.bind"]
[])))
23 changes: 0 additions & 23 deletions src/clojure_mauth_client/credentials.clj

This file was deleted.

43 changes: 0 additions & 43 deletions src/clojure_mauth_client/header.clj

This file was deleted.

34 changes: 0 additions & 34 deletions src/clojure_mauth_client/header_v2.clj

This file was deleted.

43 changes: 0 additions & 43 deletions src/clojure_mauth_client/middleware.clj

This file was deleted.

70 changes: 0 additions & 70 deletions src/clojure_mauth_client/request.clj

This file was deleted.

37 changes: 0 additions & 37 deletions src/clojure_mauth_client/util.clj

This file was deleted.

Loading