Re: [Repoze-dev] Configuring classifiers in repoze.who

2009-04-29 Thread Chris McDonough
On 4/29/09 2:14 PM, Ignacio Ortega wrote:
> Hi:
>
> I made my own classifier to have a specific identifier and challenger when I
> make a request from different sources (browser, script, another app...). But
> I dont get how I can set tha, for example, if my classifier detects that
> it's a script request I want that a basic auth acts and the basic auth
> challenge too, or if its a browser request, the from identifier and
> challeger acts for that request. I have only a list of possible candidates
> (identifiers and challengers), but I want that only one acts depending on
> the classification. How I can configure this?

In the config file:

   identifiers =
 someidentifier;browser
 someotheridentifier

In other words, use ";foo" after the plugin name in each of the sections where 
"foo" is whatever your classifier returns.

- C


>
> Regards,
>
> Ignacio Ortega C.
>
>
>
> 
>
> ___
> Repoze-dev mailing list
> Repoze-dev@lists.repoze.org
> http://lists.repoze.org/listinfo/repoze-dev

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


[Repoze-dev] Configuring classifiers in repoze.who

2009-04-29 Thread Ignacio Ortega
Hi:

I made my own classifier to have a specific identifier and challenger when I
make a request from different sources (browser, script, another app...). But
I dont get how I can set tha, for example, if my classifier detects that
it's a script request I want that a basic auth acts and the basic auth
challenge too, or if its a browser request, the from identifier and
challeger acts for that request. I have only a list of possible candidates
(identifiers and challengers), but I want that only one acts depending on
the classification. How I can configure this?

Regards,

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