[daisy] Include credentials in the url?

Bruno Dumon bruno at outerthought.org
Thu Jun 28 03:18:50 CDT 2007


On Wed, 2007-06-27 at 15:02 -0400, Peter Dykstra wrote:
> Hi
> 
> I'm wondering, is there a way to pass user name and password to the Daisy
> Wiki as part of the URL, so this could be supplied from another application
> and the user would not have to log on to Daisy manually? I'm trying to find
> the easiest way to go directly into a Wiki page already logged on, to avoid
> the need for what would be a second log on in this case. Thanks for any
> advice!

One way might be to go through the login URL

This is URL is something like:

http://host/daisy/login

(possibly without the /daisy)

You need to do a HTTP POST to this URL with the following parameters:

action=login
username=...
password=...
returnTo=...

The returnTo parameter contains the URL to which to redirect after
login, thus something like:

/daisy/sitename/document-id.html

If you want more customized behaviour then this, you can develop a wiki
extension.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



More information about the daisy mailing list