API and reverse proxy authentication

My gitea sever is configured to delegate the authentication to a reverse proxy using ENABLE_REVERSE_PROXY_AUTHENTICATION.

However, it seems that it is not compatible with the Basic Authentication which is used by the api when generation tokens. I got the following message:

  "message": "auth required",
  "url": "https://gitea.....ivalua.com/api/swagger"

Any idea of this issue or a way to workaround it ?

Thank you

If I remember correctly, a token is necessary …

The token generation endpoint is specific and requires basic authentication :
Generating and listing API tokens