marimo icon indicating copy to clipboard operation
marimo copied to clipboard

password required when logging in

Open jetjinser opened this issue 2 years ago • 1 comments

Description

hi 👋, I just started trying marimo.

I deployed this as a public service on the server, considering that there might be some security risks. I'm hoping to restrict logins in some way.

Not sure if I've missed something, if marimo can do this please point it out.

Thank you for your great work!

Suggested solution

If a password is set in the configuration, you need to provide the password to enter marimo.

Alternative

No response

Additional context

No response

jetjinser avatar Nov 26 '23 03:11 jetjinser

Hi @jetjinser! Thanks for the great suggestion.

marimo doesn't currently support password authentication -- sorry about that! But we can definitely add this to our list of future features.

akshayka avatar Nov 27 '23 17:11 akshayka

@jetjinser - you should be able to roll this yourself using marimo.create_asgi_app.

This example doesn't implement the password protection, but it close. you can likely go off this: https://github.com/marimo-team/marimo/blob/main/marimo/_smoke_tests/custom_server/my_server.py FastAPI provides some middlewares and utils for sessions to make this even easier.

Here are some docs: https://docs.marimo.io/guides/deploying/programmatically.html

mscolnick avatar Apr 12 '24 01:04 mscolnick

Going to re-open this as we plan to add basic-auth support: https://github.com/marimo-team/marimo/pull/1363

mscolnick avatar May 13 '24 19:05 mscolnick