#!/usr/bin/env bash # # revoke_grant.sh: open Gitea's "Authorized OAuth2 Applications" page so # the operator can revoke a stale OAuth grant whose scope set no longer # matches the unified scope set requested by this scaffold and the # orchestrator's gateway. See docs/oauth-grant-scope-mismatch.md for # the full failure mode and recovery procedure. set -euo pipefail here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" # shellcheck disable=SC1091 . "$here/common.sh" load_env require_env FORGE_GITEA_URL require_env FSDGG_CLI_CLIENT_ID require_cmd python3 base="${FORGE_GITEA_URL%/}" url="${base}/user/settings/applications" cid="${FSDGG_CLI_CLIENT_ID}" cat <