[pmwiki-users] PmWikiEdit . . .
Patrick R. Michaud
pmichaud at pobox.com
Mon Feb 6 10:06:04 CST 2006
On Mon, Feb 06, 2006 at 03:46:48PM +0100, christian.ridderstrom at gmail.com wrote:
> On Mon, 6 Feb 2006, Patrick R. Michaud wrote:
>
> > On Mon, Feb 06, 2006 at 12:15:45AM +0100, christian.ridderstrom at gmail.com wrote:
> > > One solution for pages protected with .htpasswd is to submit URIs such as
> > > this one:
> > >
> > > http://user:password@pmwiki.org/wiki/Some/Page
> > >
> > > However, this doesn't work with other authentification schemes unless
> > > pmwiki is modified to extract username/password from the URI if it's
> > > there. IIRC, Patrick will consider do this if we ask him.
> >
> > No, I said I would do this if someone could figure out a way to
> > extract the "user:password" portion from the uri. In all of the
> > versions of Apache that I have ever used, the "user:password"
> > portion of the url isn't made available to the PHP script unless the
> > site is being protected by .htpasswd.
>
> Ah... Would it then instead be an option to allow pmwiki to extract
> password/username from something like:
>
> ...?user=xxx&password=xxx
Use authid= and authpw=, and then in local/config.php use:
if (isset($_GET['authid'])) $_POST['authid'] = $_GET['authid'];
if (isset($_GET['authpw'])) $_POST['authpw'] = $_GET['authpw'];
Pm
More information about the pmwiki-users
mailing list