Pr0dt0s / obsidian-html-server

Obsidian plugin to serve a vault as an html site.
GNU General Public License v3.0
82 stars 4 forks source link

[feature request] user authentication #3

Closed pcause closed 1 year ago

pcause commented 1 year ago

It would be great to have user authentication. seems you are using express and they have a sample to do simple user authentication

Pr0dt0s commented 1 year ago

Hello @pcause, Im glad to see some users of the plugin already.

User Auth seems like a great feature, I'll work on it for the next release, hopefully it will be ready in time for the publishing in the comunity plugins repo.

Pr0dt0s commented 1 year ago

Hello @pcause, Would you mind updating to the latest version and testing the feature out.

pcause commented 1 year ago

I installed with BART. Says it installed, but I don't see it in the community plugins list. Tried to access a file using localhost and nothing. On Windows 11.

pcause commented 1 year ago

reinstalled and now i get the login page. enter the user/password. If I enter a good user/password it just seems to sit and never deliver anything. I did set a default note but doesn't get there. After turning on/off a few times and changing default note, couldn't even get login page. Will restart obsidian and see what happens.

I used a custom port 34090, if that matters. Maybe there is an issue that you aren't using the URL that is used to access and have the port hardcoded in the responses??

The page that I has as default just has test 123 as content

After restart get the login again but nothing after.

pcause commented 1 year ago

also appears that if I change username or password I need to restart the server to have effect. you might either do automatically or popup a note for the use to do so.

Pr0dt0s commented 1 year ago

Hello @pcause, I just released a new minor version that handles some of those things better.

Please feel free to test it out, and let me know of anything.