TiddlyRemember icon indicating copy to clipboard operation
TiddlyRemember copied to clipboard

Allow syncing to a private Tiddly Host

Open GameDungeon opened this issue 3 years ago • 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.

GameDungeon avatar Apr 16 '22 23:04 GameDungeon

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.

sobjornstad avatar Apr 17 '22 20:04 sobjornstad

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.

GameDungeon avatar Apr 18 '22 01:04 GameDungeon

Opened an issue https://github.com/simonbaird/tiddlyhost/issues/223

GameDungeon avatar Apr 18 '22 02:04 GameDungeon

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.

simonbaird avatar Apr 18 '22 14:04 simonbaird