#!/usr/bin/env bash # What a phishing attempt looks like from the relying party's side, in both ceremonies. source "$(dirname "${BASH_SOURCE[0]}")/lib.sh" start_app "" > /dev/null { header "Registration from a disallowed origin" ceremony wrong-origin echo echo "--- what the server logged ---" grep -A4 -m1 -E 'BadOriginException|InconsistentClientDataTypeException' "$APP_LOG" || tail -5 "$APP_LOG" header "Assertion from a disallowed origin" ceremony wrong-origin-login } 2>&1 | tee "$OUTPUT_DIR/pk-origin.txt" stop_app