This is a demo of how to do authentication with OpenID Connect with omniauth. It has been tested with the Library OpenID Connect proxy to University of Michigan weblogin (https://shibboleth.umich.edu), but it should work with any OpenID Connect provider.
- Clone the repository
- create a .env file with the following values
OIDC_ISSUER=
OIDC_CLIENT_ID=
OIDC_CLIENT_SECRET=
For authentication in the Library, get these from A&E.
- build the image
docker compose build
- start the site
docker compose up
- Go to http://localhost:4567
The main code is in oidc_demo.rb