https://github.com/mlibrary/oidc_omniauth_demo
https://github.com/mlibrary/oidc_omniauth_demo
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mlibrary/oidc_omniauth_demo
- Owner: mlibrary
- Created: 2021-06-16T21:02:07.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-02-01T18:17:03.000Z (over 2 years ago)
- Last Synced: 2025-01-23T21:53:38.881Z (over 1 year ago)
- Language: Ruby
- Size: 12.7 KB
- Stars: 1
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# oidc_omniauth_demo
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.
## To build
1) Clone the repository
2) 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.
3) build the image
```
docker compose build
```
4) start the site
```
docker compose up
```
5) Go to http://localhost:4567
## Where to see the code
The main code is in `oidc_demo.rb`