Skip to content

WIP: make authentication optional#33

Open
jotelha wants to merge 1 commit intojic-dtool:masterfrom
livMatS:2025-03-13-no-authentication
Open

WIP: make authentication optional#33
jotelha wants to merge 1 commit intojic-dtool:masterfrom
livMatS:2025-03-13-no-authentication

Conversation

@jotelha
Copy link
Member

@jotelha jotelha commented Mar 19, 2025

For local local use, I want to introduce an option to turn on and off authentication and JWT authorization altogether. For dservercore, I have already implemented such an option, jic-dtool/dservercore#87. For the webapp, the current branch removes authentication altogether. Still need to make it configurable.

@tjelvar-olsson
Copy link
Contributor

tjelvar-olsson commented Mar 19, 2025 via email

@jotelha
Copy link
Member Author

jotelha commented Mar 24, 2025

I don't see danger here as long as it's cleanly implemented, i.e. authentication is always activated per default (both on server and on client side). But it can be disabled when explicitly setting the right configuration option. This always happens at service launch, e.g. via the usual environment variables for configuring Flask app and Vue app, and cannot be modified at runtime.

I want to put together a lean container that exposes both dserver and the webapp and quickly builds an index on a local directory when run with a command like

docker run -v $(pwd):/tmp/data -p 8888:8888 dtool/dserver-minimal

In this usecase the authentication is superfluous and hinders smooth and quick access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants