Hi Jon!
> I am trying to replicate the behaviour of the /challenge/cookie_form
> login using AJAX. I'm using the TiddlyWebLoginPlugin and
> TiddlyWebAdaptor (modified to send tiddlyweb_redirect value as well).
>
> My problem is that, although the XMLHttpRequest appears to do an
> identical POST to the cookie_form form submit, the response is always
> 401 Unauthorized.
I didn't quite grok your issue, or if it was TiddlyWiki or TiddlyWeb
specific, but we had something of a learning experience of session
cookies logging into to Confabb from RippleRap.
Some browsers automatically appended the session and other cookies to
an XHR, where as some others, notably IE, did not.
We ended up recreating the Confab login form as a plugin, manually
extracting the cookie, and then manually attaching it to future XHR
requests. Follow the txtConfabbSessionCookie in:
http://svn.tiddlywiki.org/Trunk/verticals/ripplerap/editions/Confabb/plugins/ConfabbLoginPlugin.js
http://svn.tiddlywiki.org/Trunk/verticals/ripplerap/editions/Confabb/adaptors/ConfabbAgendaAdaptorPlugin.js
HTH
Paul (psd)
--
http://blog.whatfettle.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---