[Grok-dev] zope.pluggableauth is not working.
zgwmike at gmail.com
Sun Nov 7 21:43:32 EST 2010
By default it uses this view to bring the Basic Auth Dialog.
and I create my own view to override it to show a log in page for session
Christian Klinger wrote:
> Hi Shrek,
> i think the problem that causes the error is a missing
> package called zope.app.exception. I think if you include
> the package and include this zcml snippet
> <include package="zope.app.exception.browser"/>
> it will work.
> You can have a look on this configure.zcml it registers
> the same IUnauthorized View.
>> Hi, Souheil,
>> I already did that. and found a way to make it working.
>> Here are the steps.
>> With all the code I pasted in the previous message.
>> Add a grok view for IUnauthorized
>> from zope.security.interfaces import IUnauthorized
>> class Unauthorized(grok.View):
>> grok.name <http://grok.name>("index.html")
>> def render(self):
>> if self.request.response.getStatus() not in (302,303):
>> return "Not authorized!"
>> Then, If no application is added, the basic auth will work.
>> if an application added, it will use the local utility implementing
>> On Sat, Nov 6, 2010 at 11:17 PM, Souheil CHELFOUH <trollfot at gmail.com
>> <mailto:trollfot at gmail.com>> wrote:
>> Hello Shrek,
>> You are not alone :)
>> The authentication process can be a pain and the stack is hardly
>> What I can do is :
>> 1. Try the code you pasted on your previous messages
>> 2. Debug
>> 3. Send you a summary of what is needed to make it work.
>> After this, I will spend time writting a tutorial to cover a bit more
>> in-depth this issue
>> - Souheil
>> I will try to summariez
>> 2010/11/6 Shrek Zhou <zgwmike at gmail.com <mailto:zgwmike at gmail.com>>:
>> > Does zope.pluggableauth work for Grok 1.2 now?
>> > if it does, how to configure?
>> > --
>> > View this message in context:
>> > Sent from the Grok mailing list archive at Nabble.com.
>> > _______________________________________________
>> > Grok-dev mailing list
>> > Grok-dev at zope.org <mailto:Grok-dev at zope.org>
>> > https://mail.zope.org/mailman/listinfo/grok-dev
>> Grok-dev mailing list
>> Grok-dev at zope.org
> Grok-dev mailing list
> Grok-dev at zope.org
View this message in context: http://old.nabble.com/zope.pluggableauth-is-not-working.-tp30147447p30157519.html
Sent from the Grok mailing list archive at Nabble.com.
More information about the Grok-dev