I was thinking about using a JSON data tiddler (it has all the names of all text tiddlers, and some text in the tiddler body) as the source to generate tiddlers. And a "user table" tiddler lists all the users and which text tiddlers the users can edit (by tiddler names). So once my users logged in to my app through SSO, Chrome will know the username then match it in the user table and generate editable tiddlers. - this is just my theory, nothing in practice yet. I noted that some discussions talked about the time consumption in parsing JSON. But I don't know other possible ways to include a 'database' within a single Tiddlywiki file.
And, the JSON tiddler and the user table tiddler need to be protected somehow. Thanks for working on BOB. I have it on my server :) On Friday, January 4, 2019 at 10:46:25 PM UTC+13, Jed Carty wrote: > > I don't think that what you want to do is possible in a single file wiki. > The Oauth2 authentication is based on tokens and logging in requires > redirection of a url. > > Also Oauth2 is designed to mediate communications between a server and a > browser or other application by limiting what is able to be sent, in a > single file wiki you have already sent everything so there isn't a > meaningful way to give only a subset of the full wiki without a server. > > I think that the best you can do with a single file wiki is have some > tiddlers encrypted and allow people with a password to decrypt the > tiddlers. Someone was talking about creating a plugin that would allow that > but I don't know how much progress was made with it. So it may already > exist and I am just not aware of it. > > I have been working on improving the secure server version of Bob to allow > more finely grained control over access to individual tiddlers. So far it > has been much more practical to just create new wikis and control access to > them, the UI for adding access controls to specific groups of tiddlers may > end up being more confusing than useful, we are still working on it. > > And, in all of the options, there is nothing to prevent someone from > copying the tiddlers that are not public once they have them loaded. > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/54fa37cf-96fd-4d74-86d7-27e42949a4d8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.