[Zope-PAS] what plugins are needed for authentication

robert rottermann robert at redcor.ch
Wed Apr 4 08:28:17 EDT 2007


Mark Hammond wrote:
>> Hi there,
>>
>> I want to write a PAS Plugin that does only the authentication.
>>
>> it should do the authentication and then store it in a
>> session for a coupple of hours.
>>
>> Now I am unsure which services I have to implement.
>> IAuthenticationPlugin ??
>> IExtractionPlugin  ??
>>     
>
> Without more information, it's unclear what you will need.  Assuming you
> want to reuse either HTTP basic or cookie authentication for the mechanics
> of getting a username/password pair, you can enable the standard PAS plugins
> for IChallengePlugin and IExtractionPlugin.  You should then only need to
> implement IAuthenticationPlugin - and the main job there is for you to
> validate the credentials, then return a dict with the username you
> extracted.  You will also need to have a user manager - the "ZODB User
> Manager" might be OK.  I'd recommend the approach of setting PAS up with
> everything working as you want except for the actual authentication you want
> to perform.  You should then replace the interfaces from that set until
> everything you need is done :)
>
> This is mainly from memory, but I hope it helps...
>
> Mark
>
> _______________________________________________
> Zope-PAS mailing list
> Zope-PAS at zope.org
> http://mail.zope.org/mailman/listinfo/zope-pas
>
>   
thank you very mutch to all the answer I got.
This is what I need:

 on an intranet I want to have all users in a plone "user_source".
the authentication itself should be against a bunch of
ActiveDirectory-domains.
after the authemtication I just want the user to be authorized without
the need to re authenticate during business hours.

thanks  again
robert

-------------- next part --------------
A non-text attachment was scrubbed...
Name: robert.vcf
Type: text/x-vcard
Size: 200 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-pas/attachments/20070404/d32dead8/robert.vcf


More information about the Zope-PAS mailing list