websu icon indicating copy to clipboard operation
websu copied to clipboard

Error when using caddy reverse proxy for basicauth simple authentication

Open abolast opened this issue 1 year ago • 1 comments

I encountered an error while trying to set up basic authentication using Caddy's reverse proxy and basicauth module. Specifically, the error message stated that the authorization header format must be "Bearer {token}." My deployment is using Docker Compose locally, and I'm attempting to provide simple authentication for the Web-UI. Interestingly, I tried running the "https://github.com/websu-io/websu-ui" project locally and Caddy was able to provide authentication through the basicauth module without issue. I'm curious to know what the difference is between the Docker and Yarn build versions of websu-ui.

abolast avatar Apr 07 '23 09:04 abolast

I have seen jwt.go.Maybe i can reduce all jwt code. Also, I can configuring caddy2 authentication on jwt.

abolast avatar Apr 08 '23 03:04 abolast