#!/bin/bash -x # perform an authentication as admin so that all other scripts can # use the cached credentials export PATH=$PATH:/opt/keycloak/bin kcadm.sh \ config credentials \ --server http://keycloak:8080/ \ --user admin \ --password "$KEYCLOAK_ADMIN_PASSWORD" \ --realm master \ || exit 1