NuID SDK for Clojure
This repo provides a lib for interacting with NuID APIs within Clojure applications.
Read the latest lib docs or checkout the NuID platform docs for API docs, guides, video tutorials, and more.
Install
tools.deps
{:deps
{nuid/sdk {:git/url "https://github.com/NuID/sdk-clojure"
:sha "..."}}}
Or from clojars:
{:deps
{nuid/sdk {:mvn/version "0.3.0"}}}
Leiningen/Boot
[nuid/sdk "0.3.0"]
Clojure CLI/deps.edn
nuid/sdk {:mvn/version "0.3.0"}
Gradle
compile 'nuid:sdk:0.3.0'
Maven
<dependency>
<groupId>nuid</groupId>
<artifactId>sdk</artifactId>
<version>0.3.0</version>
</dependency>
Usage
Example ring handler.
For a more detailed example visit the Integrating with NuID guide and the accompanying examples repo. A clojure-specific code example is coming soon.
;; TODO
Development
You'll need the following dependencies on your system:
- OpenJDK 8
- Clojure 1.10
- NodeJS 12 (with npm)
You can invoke the tests using make test. On your first run you'll be prompted
for the Auth API Host and Key.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/NuID/sdk-clojure.
License
The gem is available as open source under the terms of the MIT License.