Skip to content

Commit

Permalink
Merge pull request #42 from mlibrary/change-to-shibboleth
Browse files Browse the repository at this point in the history
Changes to using Shibboleth as OIDC issuer
  • Loading branch information
niquerio authored Feb 23, 2024
2 parents 12cf6e8 + 1cecb50 commit 895d9da
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ALMA_API_KEY='YOUR-ALMA-API-KEY'
WEBLOGIN_SECRET='YOUR-WEBLOGIN-SECRET'
WEBLOGIN_ID='YOUR-WEBLOGIN-ID'
OIDC_CLIENT_SECRET='YOUR-OIDC-CLIENT-SECRET'
OIDC_CLIENT_ID='YOUR-OIDC-CLIENT-ID'
OIDC_ISSUER='https://your-oidc-issuer'
WEBLOGIN_ON='false'
ACCOUNT_URL='https://account.lib.umich.edu'
BUNDLE_RUBYGEMS__PKG__GITHUB__COM="YOUR GITHUB TOKEN WITH READ PACKAGES"
6 changes: 3 additions & 3 deletions get-this.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@

use OmniAuth::Builder do
provider :openid_connect, {
issuer: "https://weblogin.lib.umich.edu",
issuer: ENV["OIDC_ISSUER"],
discovery: true,
client_auth_method: "jwks",
scope: [:openid, :profile, :email],
client_options: {
identifier: ENV["WEBLOGIN_ID"],
secret: ENV["WEBLOGIN_SECRET"],
identifier: ENV["OIDC_CLIENT_ID"],
secret: ENV["OIDC_CLIENT_SECRET"],
redirect_uri: "#{ENV["GET_THIS_BASE_URL"]}/auth/openid_connect/callback"
}
}
Expand Down
5 changes: 4 additions & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ docker compose run --rm web bundle
echo "📦 Installing Node modules"
docker compose run --rm web npm install

echo "📦 Building js and css"
echo "📦 Building css"
docker compose run --rm web npm run build

echo "📦 Copying over js"
cp js/* public/bundles/

0 comments on commit 895d9da

Please sign in to comment.