Ticket #929 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

[TiddlyWeb] provide information about authenticated user

Reported by: FND Owned by: cdent
Priority: major Milestone:
Component: tiddlyweb Version:
Severity: medium Keywords:
Cc:

Description

While the current challengers (OpenID, cookie-based) supply a cookie containing the authenticated user, it is not guaranteed that all challengers create a cookie.

TiddlyWeb should thus provide a way for the client to retrieve the respective username.

Change History

  Changed 4 years ago by FND

This information could also be used by TiddlyWebConfig? to set config.options.txtUserName.

follow-up: ↓ 3   Changed 4 years ago by cdent

One option would be for tiddlyweb.web.sendtiddlers.send_tiddlers to set the txtUserName cookie to environtiddlyweb.user?usersign? when sending the wiki serialization.

Not entirely sure this is "best" but it is a solution.

in reply to: ↑ 2   Changed 4 years ago by FND

Replying to cdent:

One option would be for tiddlyweb.web.sendtiddlers.send_tiddlers to set the txtUserName cookie to environtiddlyweb.user?usersign? when sending the wiki serialization.

Agreed; this seems like a good solution for now.

  Changed 4 years ago by FND

  • priority changed from minor to major

cf. #949

  Changed 4 years ago by cdent

Another option is a /status url that returns a json rep of various info about the server's current state, including current user, version

If done as a plugin we can play around with it for a while.

  Changed 4 years ago by cdent

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.