Skip to content

Commit 895d9da

Browse files
authored
Merge pull request #42 from mlibrary/change-to-shibboleth
Changes to using Shibboleth as OIDC issuer
2 parents 12cf6e8 + 1cecb50 commit 895d9da

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

env.example

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
ALMA_API_KEY='YOUR-ALMA-API-KEY'
2-
WEBLOGIN_SECRET='YOUR-WEBLOGIN-SECRET'
3-
WEBLOGIN_ID='YOUR-WEBLOGIN-ID'
2+
OIDC_CLIENT_SECRET='YOUR-OIDC-CLIENT-SECRET'
3+
OIDC_CLIENT_ID='YOUR-OIDC-CLIENT-ID'
4+
OIDC_ISSUER='https://your-oidc-issuer'
45
WEBLOGIN_ON='false'
56
ACCOUNT_URL='https://account.lib.umich.edu'
67
BUNDLE_RUBYGEMS__PKG__GITHUB__COM="YOUR GITHUB TOKEN WITH READ PACKAGES"

get-this.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525

2626
use OmniAuth::Builder do
2727
provider :openid_connect, {
28-
issuer: "https://weblogin.lib.umich.edu",
28+
issuer: ENV["OIDC_ISSUER"],
2929
discovery: true,
3030
client_auth_method: "jwks",
3131
scope: [:openid, :profile, :email],
3232
client_options: {
33-
identifier: ENV["WEBLOGIN_ID"],
34-
secret: ENV["WEBLOGIN_SECRET"],
33+
identifier: ENV["OIDC_CLIENT_ID"],
34+
secret: ENV["OIDC_CLIENT_SECRET"],
3535
redirect_uri: "#{ENV["GET_THIS_BASE_URL"]}/auth/openid_connect/callback"
3636
}
3737
}

init.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ docker compose run --rm web bundle
2424
echo "📦 Installing Node modules"
2525
docker compose run --rm web npm install
2626

27-
echo "📦 Building js and css"
27+
echo "📦 Building css"
2828
docker compose run --rm web npm run build
29+
30+
echo "📦 Copying over js"
31+
cp js/* public/bundles/

0 commit comments

Comments
 (0)