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

[BUG] HTTP Basic Authentication Breaks NextCloud #1057

Open
TomBayne opened this issue Aug 4, 2023 · 3 comments
Open

[BUG] HTTP Basic Authentication Breaks NextCloud #1057

TomBayne opened this issue Aug 4, 2023 · 3 comments
Labels

Comments

@TomBayne
Copy link

TomBayne commented Aug 4, 2023

What happened?

Steps to reproduce:
Log in to Swizzin
Navigate to the NextCloud web interface
Blank 'Error' Screen. This is due to NextCloud not liking the Basic authentication in the header.

Remove Authentication header from HTTP request.
NextCloud works as normal

Expected results:

NextCloud should work as normal after basic authentication.

Swizzin commit

9dc0c50

What OS are you using?

Ubuntu 22.04 (Jammy)

What architecture is your OS?

amd64

Relevant logs and output

No response

@TomBayne TomBayne added the bug label Aug 4, 2023
@liaralabs
Copy link
Member

This is unfortunately is a feature of NextCloud because NextCloud supports basic auth at some level and the general basic auth headers are interfering.

We may be able to force nginx to remove auth headers in the location directive; however this will essentially break NextCloud's basic auth implementation. I can't guarantee there's a real fix here, as a potential fix could potentially inconvenience another user.

A workaround could be to have a subdomain and use that subdomain only for accessing NextCloud as basic auth credentials are cached at the domain level in browsers.

@TomBayne
Copy link
Author

TomBayne commented Aug 4, 2023

@liaralabs

This is what I assumed - it's a shame it's not an easy fix.

Is it possible to have NextCloud setup as normal (with it accessible through the swizzin web dashboard) on a seperate domain? What configs do I change to make this happen (so that the NextCloud link on the dashboard directs to the new subdomain)

In terms of forcing nginx to remove the headers - could this be something optional during install? I don't even see how you'd enable basic auth in NextCloud so I'd bet it's a real edge-case that someone wouldn't want this functionality.

@wietvergiet
Copy link

I recently tried to set up Nextcloud on my swizzin install and I was pulling my hair out trying to debug what was going on, glad someone did and I can stop going crazy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants