Skip to content

jameslaneconkling/openid-client

Repository files navigation

OpenID Connect Client

Configure

generate public/private key pair

openssl genrsa -aes256 -out private.pem 2048

openssl rsa -pubout -in private.pem -out public.pem

configure profiles.clj

{:production {:env {:client-id "ID"
                    :client-secret "SECRET"
                    :private-key "private.pem"
                    :private-key-passphrase "PASSPHRASE"}}}

Develop

lein ring server-headless

Build

lein with-profile +production ring uberjar

Run

The bouncycastle signing library cannot be included in the uberjar build. Download bcpkix-jdk15on-159.jar and bcprov-jdk15on-159.jar from here and add to the classpath when running the app.

java -cp target/uberjar/openid-client-0.1.0-SNAPSHOT-standalone.jar:bcpkix-jdk15on-159.jar:bcprov-jdk15on-159.jar openid_client.core.main

About

OpenID Connect reference implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published