kron in the stack, auto_link for Vipps Login, and the vel's colours in Rauthy #13

Merged
bl merged 5 commits from kron-pay into main 2026-11-10 22:07:41 +01:00
Showing only changes of commit 47342b0867 - Show all commits
+8 -1
View File
@@ -10,6 +10,13 @@
# Vipps's side: the sales unit's Vipps Login must have the redirect URI # Vipps's side: the sales unit's Vipps Login must have the redirect URI
# https://<RAUTHY_HOST>/auth/v1/providers/callback registered, or every # https://<RAUTHY_HOST>/auth/v1/providers/callback registered, or every
# sign-in is refused there. # sign-in is refused there.
#
# auto_link: a Vipps sign-in whose (Vipps-verified) email is an account
# here already is linked to that account, so the board's password and
# passkey accounts and Vipps lead to the same person and the same groups.
# Without it Rauthy refuses the sign-in and asks them to link it from
# their account page first, which nobody finds. auto_onboarding: a new
# address becomes an account on the spot.
set -euo pipefail set -euo pipefail
for v in RAUTHY_HOST RAUTHY_API_KEY VIPPS_LOGIN_CLIENT_ID VIPPS_LOGIN_CLIENT_SECRET; do for v in RAUTHY_HOST RAUTHY_API_KEY VIPPS_LOGIN_CLIENT_ID VIPPS_LOGIN_CLIENT_SECRET; do
[ -n "${!v:-}" ] || { echo "rauthy-providers: $v is not set; nothing changed"; exit 0; } [ -n "${!v:-}" ] || { echo "rauthy-providers: $v is not set; nothing changed"; exit 0; }
@@ -26,7 +33,7 @@ vipps=$(jq -n --arg id "$VIPPS_LOGIN_CLIENT_ID" --arg secret "$VIPPS_LOGIN_CLIEN
client_id: $id, client_secret: $secret, client_secret_basic: true, client_secret_post: false, client_id: $id, client_secret: $secret, client_secret_basic: true, client_secret_post: false,
scope: "openid name email phoneNumber", use_pkce: true, danger_allow_insecure: false, root_pem: null, scope: "openid name email phoneNumber", use_pkce: true, danger_allow_insecure: false, root_pem: null,
admin_claim_path: null, admin_claim_value: null, mfa_claim_path: null, mfa_claim_value: null, admin_claim_path: null, admin_claim_value: null, mfa_claim_path: null, mfa_claim_value: null,
auto_onboarding: true, auto_link: false }') auto_onboarding: true, auto_link: true }')
# Listing is a POST in Rauthy's API. # Listing is a POST in Rauthy's API.
existing=$(curl -sf -X POST -H "$auth" -H 'content-type: application/json' -d '{}' "$base/providers" | jq -r '.[] | select(.name == "Vipps") | .id' | head -n1) existing=$(curl -sf -X POST -H "$auth" -H 'content-type: application/json' -d '{}' "$base/providers" | jq -r '.[] | select(.name == "Vipps") | .id' | head -n1)
if [ -n "$existing" ]; then if [ -n "$existing" ]; then