You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by to...@gcrud.org on 2004/07/13 12:06:45 UTC

Re: Authentication and Auhorization - need some help from the original developers

Andreas,

>> BTW, I don't quite understand, do you want to submit a bug report or
>> is the behaviour you describe correct?

Well, I wouldn't file a bug report for me having problems understanding
what the code does. As I mentioned in another email I found the problem.
It arises from the fact that the test of a User belongs to an
AcceditableManager the test is for identity of objects, not just equality.

>> I can't tell at the moment, it is quite a long time ago that I wrote
>> the code.

Good to know it was you!

I had a hard time understanding some of the design decisions. I managed to
get around what I wanted to try out, but I might have some more questions
later.

Torsten

> torsten_lenya-dev@gcrud.org wrote:
>> Dear list,
>>
>> I am still trying to work out Authentication and Authorization in Lenya,
>> but I am stuck for days now.
>>
>> I cannot get over a specific problem:
>>
>> After the user submits the login screen, UserAuthenticator is called.
>> UserAuthenticator is making use of the AccreditableManager and the
>> UserManager to decide if the username and password provided fit
>> together.
>> If yes, the User object is added to the Identity which is stored in the
>> session.
>>
>> Fine.
>>
>> The problem I am having is that at the point in time the DefaultPolicy
>> is
>> using the Identity it appears to be a new one which does not have the
>> authenticated user in it. Therefore authentication fails obviously.
>
> This is strange ... actually it should be the original identity
> created by DefaultAccessController.setupIdentity().
>
> BTW, I don't quite understand, do you want to submit a bug report or
> is the behaviour you describe correct?
>
>
>> I have done a bit of log file reading and found that while logging in to
>> the application, a new Identity is crated twice. Why is that? And where
>> does the 2nd instance of Identity get its User object from?
>
> I can't tell at the moment, it is quite a long time ago that I wrote
> the code. But I'll try to help you when I find more time.
>
> Thanks for all your documentation efforts!
> I'm sure thats very helpful to the community.
>
> -- Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org