Skip to content

How does copyparty interact with basic auth? #158

Answered by 9001
gabevenberg asked this question in Q&A
Discussion options

You must be logged in to vote

if the username is foo and the password is bar, then copyparty should accept a basic-auth which is either bar or x:bar or even bar:x (notice it doesn't care about the username) -- so the safest approach is to add the users to the copyparty config with the same username+password combination, and it should just work -- assuming you let copyparty see the basic-auth header (you don't strip the basic-auth header from the request).

alternatively, if you are absolutely sure that the only way to access the copyparty instance is through nginx, and nginx will definitely always verify the basic-auth before letting people through, and you'd prefer to not have to specify the same password twice, then …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@gabevenberg
Comment options

@9001
Comment options

9001 Apr 22, 2025
Maintainer

@gabevenberg
Comment options

Answer selected by gabevenberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants