Re: [Repoze-dev] Multiple authentication methods

2010-05-10 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Roland Hedberg wrote:

> I have a use case where I would like the user to chose which
> authentication method to use.
> 
> It's easy to have serveral authentication methods in repoze.who. But
> the normal case is that they are tried in order until someone
> succeeds or all are tried. I'd like the user to be presented with a
> set of choices and then use the one choosen. Is this be possible to
> do ?


Not really:  you would have to "fake" an authentication plugin which
sniffed the request environment for that choice and delegated to other
plugins:  likely the "fake" would be the only one registered directly
with repoze.who as an authentication plugin.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkvoCsQACgkQ+gerLs4ltQ6XBQCbBuKaRGc5cIYLgG/ly7mqqjD0
ul4An2C29bVL89bbEpHl1sPP2q5p39q3
=Kv5c
-END PGP SIGNATURE-
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


[Repoze-dev] Multiple authentication methods

2010-05-10 Thread Roland Hedberg
Hi!

I have a use case where I would like the user to chose which authentication 
method to use.

It's easy to have serveral authentication methods in repoze.who. 
But the normal case is that they are tried in order until someone succeeds or 
all are tried.
I'd like the user to be presented with a set of choices and then use the one 
choosen.
Is this be possible to do ?

--Roland

___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev