Allow syncing to a private Tiddly Host
Opened this issue · 4 comments
Right now it just returns 401 unauthorized error. I'm not 100% sure of a solution. Maybe I could somehow give it a cookie or maybe tiddlyhost needs to add an API.
If TiddlyHost can (or can be made to) accept HTTP basic auth with a direct link to a wiki, you should be able to use the URL type in TiddlyRemember and include the username and password in the URL with the user:password@domain
notation.
Alternatively, if there's some other login mechanism that doesn't require user interaction, or again, if someone adds it to TiddlyHost (probably a great idea if there isn't one), we could add a wiki type specifically for TiddlyHost – that seems fairly reasonable.
As far as I can tell, tiddlyhost requires you to log into an account with it, where it gives you a cookie. Without this cookie you can't view the TiddlyWiki page. Like I thought this may need some collaboration with tiddlyhost.
Opened an issue tiddlyhost/tiddlyhost-com#223
It's not an ideal solution, and I do prefer the idea of creating a token for access to a particular site, but it is possible to script the current Tiddlyhost authentication. https://github.com/simonbaird/tiddlyhost/blob/main/examples/thost-downloader shows how it can be done.