ProxyAuthState

The per-authorization state the proxy persists between /authorize and the upstream callback: the client's dynamic redirect_uri and the client's own state, keyed by a freshly minted opaque proxy state that is the only state value sent upstream. The client's PKCE code_challenge and scope are also retained so the upstream authorize redirect can be (re)built after a consent-approval round-trip (confused-deputy mitigation).

Members

Variables

clientRedirectUri
string clientRedirectUri;

the client's dynamic redirect URI (RFC 7591)

clientState
string clientState;

the client's original OAuth state, relayed back verbatim

codeChallenge
string codeChallenge;

the client's PKCE S256 code_challenge, forwarded upstream

scope_
string scope_;

the client's requested scope, forwarded upstream