Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable to skip authentication when deployed behind a reverse proxy #4202

Open
tesence opened this issue Dec 15, 2024 · 0 comments
Open

Enable to skip authentication when deployed behind a reverse proxy #4202

tesence opened this issue Dec 15, 2024 · 0 comments
Labels
enhancement New feature or request Stale

Comments

@tesence
Copy link

tesence commented Dec 15, 2024

Describe the solution you'd like

Hello

It would be nice to delegate the authentication workflow to a reverse proxy up front (basic_auth).

Memos is currently not easily deployable behind such reverse proxy as it stores the bearer token in the "Authorization" header, that the basic auth also uses, leading to memos not working at all.

-> User authenticates through basic auth, the reverse proxy set the "Authorization" header as follow "Basic XXXX"
-> Memos is not able to parse the header as it expects it to be either "Bearer XXXX" or ""

The only workaround I found is to delete the Authorization header from the request before redirecting to Memos, losing the basic authentication.

An option would be to enable the user to set a custom header with the id of the logged user through basic auth.

Type of feature

Integrations

Additional context

No response

@tesence tesence added the enhancement New feature or request label Dec 15, 2024
@github-actions github-actions bot added the Stale label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Stale
Projects
None yet
Development

No branches or pull requests

1 participant