Options for Grant Access on Forward Authentication

The current forward authentication is only based on 2XX status code.

Is there another way of granting access, say a header from the http response or a code in the response json.

Thank you

Hello @siyuan,

According to the documentation, it’s not currently possible. Could you please share your use-case? Why does your authentication server return a non-200 HTTP response when the request is valid?

Thank you for reply. Our user case is that the authentication server only return 200 status code, but detailed information and company defined internal status code are returned in JSON. This is legacy code, so I could not change it. So I am wondering is there any support on Traefik that granting access based on the response JSON instead of 2xx status code.

Thank you