Ticket #949 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

[TiddlyWeb] isLoggedIn() function

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

Description

could I have a javascript function which returns true or false based on my login status please.

Thanks

Simon

Change History

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

  • summary changed from isLoggedIn() function to [TiddlyWeb] isLoggedIn() function

This is probably best part of a TiddlyWebLogin? plugin, or something like that, which will contain the logic about what challenger is being used, and thus what piece of information to query.

There could be, but I'm not sure it is wise, a /user resource on the server which returns whatever the credential extractor system has extracted.

in reply to: ↑ 1   Changed 3 years ago by FND

  • priority changed from undefined to major
  • type changed from defect to enhancement
  • severity changed from undefined to medium

Replying to cdent:

There could be, but I'm not sure it is wise, a /user resource on the server which returns whatever the credential extractor system has extracted.

This sounds useful - what are your concerns?

Also, how does this issue relate to #929 - duplicate?

  Changed 3 years ago by cdent

  • owner changed from cdent to FND

reassigned to FND for doing somewhere, perhaps a melange of the server side saving plugin and tiddlywebadaptor

To get the current user from the server use the status plugin to get json dict that includes username of the current user. If this is _not_ GUEST then the named user is logged in.

  Changed 3 years ago by FND

  • status changed from new to closed
  • resolution set to fixed

Basic infrastructure provided in changeset:9120 and changeset:9121.

However, for Simon's specific use case, it was concluded that an asynchronous getStatus call does not satisfy the requirements. Instead, his vertical will include a simple plugin setting readOnly = false on startup.

Note: See TracTickets for help on using tickets.