1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-09-24 10:21:11 +02:00
infrastructure/one-shots/keycloak-keyfetcher/get_fingerprint.sh
Evangelos Foutras ed19221404
keycloak: remove /auth from all Keycloak endpoints
From [1]: "By default, the new Quarkus distribution removes /auth from
           the context-path."

[1] https://www.keycloak.org/migration/migrating-to-quarkus
2022-11-12 17:33:36 +02:00

4 lines
276 B
Bash
Executable File

#!/usr/bin/env bash
curl -s https://accounts.archlinux.org/realms/archlinux/protocol/saml/descriptor | xmllint --xpath '//*[local-name()="X509Certificate"]/text()' - | base64 -d | sha1sum | cut -d ' ' -f1 | sed -e 's/.\{2\}/&:/g' | sed 's/:$//' | tr '[:lower:]' '[:upper:]'