This is a sample application that demonstrates how to perform a very basic OpenID Connect flow using Clojure.
This sample contains configuration for two authorization servers: Auth0 and Google. You can change between then by altering the configuration on line 18 of auth.clj
:
You can use the radio buttons to change between Google and Auth0 authorization servers.
Details for the authorization servers are already provided, but try altering them to use your own, or even try to add another OIDC-supported authorization server!
Both of the methods of starting the demo shown below start it in development mode. This means any code you change and save will be hot reloaded.
Run the app using Leiningen:
lein run 3000
Start your REPL, for example:
lein repl
You can then start the server using:
user=> (go)
You can stop the server with:
user=> (stop)
Copyright © 2019 Steve Hobbs
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.