#!/usr/bin/env bash # Prints the JWK source chain the running decoder actually has. set -eu . "$(dirname "$0")/lib.sh" head1 "resource server profiles: ${1:-unknown}" echo "One token is decoded first, because the decoder for an issuer-uri is built lazily." T=$(stub_token "sub=alice&aud=reports-api" 2>/dev/null || true) [ -n "${T:-}" ] && curl -s -o /dev/null -H "Authorization: Bearer $T" "$RS/api/me" || true curl -s "$RS/api/public/decoder" | python3 -m json.tool