Skip to content

A demonstration of how to interact with an OpenID Connect authorization server, in Clojure

Notifications You must be signed in to change notification settings

stevehobbsdev/clojure-oidc-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clojure-oidc-example

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!

Usage

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.

Running from Lein

Run the app using Leiningen:

lein run 3000

In a REPL

Start your REPL, for example:

lein repl

You can then start the server using:

user=> (go)

You can stop the server with:

user=> (stop)

License

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.

About

A demonstration of how to interact with an OpenID Connect authorization server, in Clojure

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published