Ticket #1163 (closed enhancement: fixed)
[TiddlyWeb] Challengers - support for popup window
| Reported by: | mahemoff | Owned by: | mahemoff |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | tiddlyweb | Version: | |
| Severity: | low | Keywords: | |
| Cc: |
Description
It would be nice if the default challengers (and perhaps the challenger mechnism) provided support for logging in via a popup window. One way might be to extend tiddlyweb_redirect, and provide an additional jsonp-style callback parameter:
"tiddlyweb_redirect" - if set to a special value, like "close", the window closes after a successful login "callback" - a callback function to be called when the window has closed, which passes in a boolean indicating login success.
I have handled this kind of thing in the jquery comments plugin ( http://svn.tiddlywiki.org/Trunk/contributors/MichaelMahemoff/lib/comments/demo/static/js/comments.js). However, the library requires the caller to provide a custom HTML file for redirection, with javascript to close itself.
