fix(coreapi): assert token_exchange_url path in validateExchangeURL

main

Commit

toothbrush3mo ago

exchangeSubjectToken strips oauthTokenPath and PostOAuthToken re-appends it, but validateExchangeURL only gated scheme and host. A hint whose path wasn't /oauth/token would make the strip a no-op and POST to a server-chosen path. Validate the path so the round-trip is honest.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: ea9e8dae6384

Checkpoints

Review PR Comments on Cross-Jurisdiction Routing

Claude CodeOpus 4.8[1m]
View session
Checkpoint 1