Title: csrf token validation failed when multiple requests access a route with OAuth2 filter simultaneously
Description:
When multiple concurrent requests hit a route protected by the OAuth2 filter, only the last request completes successfully. The other requests fail with error "OAuth flow failed", and envoy log reports that “csrf token validation failed” or "PKCE verification failed: Code mismatch".
Repro steps:
- Open multiple browser tabs pointing to a URL that requires OAuth2 filter authentication.
- In the first tab, log in using valid user credential.
- After successful login, the last tab is redirected correctly to the target URL, while the others display "OAuth flow failed".
Originally reported at Envoy Gateway: envoyproxy/gateway#7205