<p>I am using traefik auth forward to do some authorize, this is the middleware configure look like:</p>
<pre><code>apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
  name: jwt-token-auth
  namespace: reddwarf-pro
spec:
  forwardAuth:
    address: &gt;-
      http://dolphin-post-service.reddwarf-pro.svc.cluster.local:11014/post/auth/access_token/verify
</code></pre>
<p>everything works fine, but now I found the auth forward did not forward the query parameters because when I connect the websocket, I put the token in query parameters. so as the sse connection(the sse <a href="https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events</a> did not support the custom header to put the access token). but I could not get the access token from parameters in the verify function. This is how I defined the verify function:</p>
<pre><code>@GetMapping(&quot;/access_token/verify&quot;)
ResponseEntity verifyAccessToken(@RequestParam(value = &quot;access_token&quot;,required = false) String accessToken, @RequestHeader(value = &quot;Authorization&quot;,required = false) String authorizationHeader);
</code></pre>
<p>what should I do to make the traefik auth forward to pass the access token? any suggestions? this is how I pass the access token in url:</p>
<pre><code>curl https://tex.demo.top/tex/project/compile/log/stream\?project_id\=287ea73d1c78463298e9e5b267cab87f\&amp;file_name\=main.tex\&amp;version_no\=c880ee90933b46d19b16bef9f7736658\&amp;qid\=350\&amp;access_token\=eyJhbGciOiJIUzUxMiJ9.eyJ1c2VySWQiOjEwMywiZGV2aWNlSWQiOiiuwIyOTQ1ZGUwN2NkM2I1N2FkNmNkNTk4YjdhZTFjZTlmdoMCIsImFwcElkIjoibjI5UGEyOVdTMSIsImx0IjoxLCJldCI6MCwicGlkIjoxMywiZXhwIjoxNjk1Mzc2Mzkyf.WA8_XuKDd9927_j8bgjKNem7Z0WuS323DTz0DPlX_TurkZm4m7CKaerFAfN8jyM5t86MMHdtXp9N8P4ChmpQ
</code></pre>

Dolphin
<p>fisrt step enable the trustForwardHeader in traefik(2.10.x) middleware:</p>
<pre><code>trustForwardHeader: true
</code></pre>
<p>then get the uri on the server side verify method like this(Java Spring Boot):</p>
<pre><code>String uri = request.getHeader(&quot;X-Forwarded-Uri&quot;);
</code></pre>
