[GH-ISSUE #584] Issue with login in public section #347

Closed
opened 2026-04-08 16:52:13 +03:00 by zhus · 4 comments
Owner

Originally created by @manprint on GitHub (May 21, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/584

Hi @sigoden

Problem

If I start dufs with the configuration below (both public and auth access), when I am in the public section the button to log in does not work (clicking it does not happen).
I expect the auth login form to appear so I can enter my credentials to access the root.

Configuration

The build was done directly by the master at the commit f8b69f4

mybuild/dufs:master-f8b69f4 \
    /data -A \
    -a test:test@/:rw \
    -a @/public:rw

Environment Information

  • Dufs version: f8b69f4 master
  • Browser/Webdav info: Chrome/Firefox
  • OS info: Mint Cinnamon 22.1
Originally created by @manprint on GitHub (May 21, 2025). Original GitHub issue: https://github.com/sigoden/dufs/issues/584 Hi @sigoden **Problem** If I start dufs with the configuration below (both public and auth access), when I am in the public section the button to log in does not work (clicking it does not happen). I expect the auth login form to appear so I can enter my credentials to access the root. **Configuration** The build was done directly by the master at the commit `f8b69f4` ``` mybuild/dufs:master-f8b69f4 \ /data -A \ -a test:test@/:rw \ -a @/public:rw ``` **Environment Information** - Dufs version: f8b69f4 master - Browser/Webdav info: Chrome/Firefox - OS info: Mint Cinnamon 22.1
zhus closed this issue 2026-04-08 16:52:13 +03:00
Author
Owner

@sigoden commented on GitHub (May 22, 2025):

That's how it was designed. we don't think there's anything wrong with it.

<!-- gh-comment-id:2899603408 --> @sigoden commented on GitHub (May 22, 2025): That's how it was designed. we don't think there's anything wrong with it.
Author
Owner

@manprint commented on GitHub (May 22, 2025):

Hi @sigoden

Thanks for the reply

Can you explain better?

I have in the root / (test:test@/) three folders:

  • public (@/public)
  • myprivate_files
  • other

When I access dufs: (localhost:5000) I see in the root only the /public folder and it's ok.. To see the other two folders I should log in.

How can I log in directly from the dufs interface if I'm in the public section?

As I was telling you, when I click on the button at the top left nothing happens.

<!-- gh-comment-id:2900595652 --> @manprint commented on GitHub (May 22, 2025): Hi @sigoden Thanks for the reply Can you explain better? I have in the root / (test:test@/) three folders: - public (@/public) - myprivate_files - other When I access dufs: (localhost:5000) I see in the root only the /public folder and it's ok.. To see the other two folders I should log in. > How can I log in directly from the dufs interface if I'm in the public section? As I was telling you, when I click on the button at the top left nothing happens.
Author
Owner

@sigoden commented on GitHub (May 22, 2025):

@manprint

dufs webui relies on basic auth (the browser's built-in authentication mechanism).

Therefore, its authentication just checks if the user has permission.
f8b69f4df8/assets/index.js (L753-L762)

It can only be designed this way.

<!-- gh-comment-id:2900668093 --> @sigoden commented on GitHub (May 22, 2025): @manprint dufs webui relies on basic auth (the browser's built-in authentication mechanism). Therefore, its authentication just checks if the user has permission. https://github.com/sigoden/dufs/blob/f8b69f4df8ee4eb8ca7ac94beb8d46e3644374aa/assets/index.js#L753-L762 It can only be designed this way.
Author
Owner

@manprint commented on GitHub (May 22, 2025):

OK, Thanks

<!-- gh-comment-id:2900805817 --> @manprint commented on GitHub (May 22, 2025): OK, Thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#347