On 15 Dec 2010, at 08:50, Matteo Pelucco wrote:
>
> On 14.12.2010 19:15, Grégory Joseph wrote:
>>
>> There's something very close to what you need (if not exactly) in the
>> openid-module. Have a look at
>> info.magnolia.module.openid.frontend.LoginModel.
>
> Thanks Grég.. just looked in, correct me if I'm wrong:
>
> with something like:
>
> ----------------------------
> public User myCustomLogin(String username, String password){
> ... my custom login phase, it will create a non-JCR MagnoliaUser
Oh. I didn't get that you also needed to use a custom user store. Currently not
trivial. Examples found in ldap, and again in the openid module, which provides
a more generic UserManager-based jaas-login-module... which is also something
we should merge into the main codebase at some point ...
> }
>
> public void doLogin(String username, String password){
>
> final User user = myCustomLogin(username, password);
> if (null != user) {
> LoginResult loginResult = new LoginResult(LoginResult.STATUS_SUCCEEDED, user);
> }
> ----------------------------
>
> I should achieve my goal, isn't it? I forget anything?
>
>> Perhaps this is something we could port to pur or the form module or stk
>> themselves - feel to submit patches or ideas !
>
> Yes, it would be a good FormProcessor.
> I'm going to implement (today or tomorrow..) and share what will happen.
>
> Let me know only if my approach can be a valid one.
> Thanks
>
> matteo
>
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------