Skip to content

Commit e1cbe1f

Browse files
author
Joe Lane
committed
Add NTLM Authentication example to the README
CHANGES ======== - Add an example of NTLM authentication to the readme. WHY ======== When searching for a solution to NTLM + Clojure all I found was the issues and PRs for clj-http. It would have been great to see it somewhere in the docs so I knew if it worked or not. Hopefully this will begin driving traffic to the readme of this project rather than the issues and PRs.
1 parent 0ad8301 commit e1cbe1f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.org

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
- [[#authentication][Authentication]]
4242
- [[#basic-auth][Basic Auth]]
4343
- [[#digest-auth][Digest Auth]]
44+
- [[#ntlm-auth][NTLM Auth]]
4445
- [[#oauth2][oAuth2]]
4546
- [[#advanced-usage][Advanced Usage]]
4647
- [[#raw-request][Raw Request]]
@@ -860,6 +861,17 @@ There are four debugging methods you can use:
860861

861862
#+END_SRC
862863

864+
** NTLM Auth
865+
:PROPERTIES:
866+
:CUSTOM_ID: h:AE80FFDC-2016-4883-9512-2BE16640339D
867+
:END:
868+
869+
#+BEGIN_SRC clojure
870+
871+
(client/get "http://example.com/protected" {:ntlm-auth ["user" "pass" "host" "domain"]})
872+
873+
#+END_SRC
874+
863875
** oAuth2
864876
:PROPERTIES:
865877
:CUSTOM_ID: h:dd077440-a1de-437e-b34e-5d6d0d1da4bd

0 commit comments

Comments
 (0)