Hi Ola,

For the custom authentication module:
- It works in conjunction with a custom login-handler. Your login-handler 
should create a new Callback-Object, for example CredentialsCallback, and fill 
the user information into this object. This callback-object is then available 
to your authentication module.
- The authentication-module can create the user in the validateUser() method.

Regards from Vienna,

Richard



-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Ola Montan (via Magnolia Forums)
Gesendet: Montag, 17. September 2012 11:13
An: Magnolia User List
Betreff: [magnolia-user] Re: How to instantiate a User to call 
MgnlContext.login(mgnlUser);

Thank you for your answer. I have already all three methods with no result:

- Custom LoginHandler
The "handle" method of the CredentialsCallbackHandler is called but not the 
"getUser" method. I don't understand where to create the user. The 
"authenticate" call in my custom "LoginHandler" gives STATUS_FAILED

- Custom "UserManager"
The method getUser( String name ) is called, I creates a new ExternalUser and 
returns and then nothing

- Custom AuthenticationModule
Where should it create a user? The method getUser is never called and I don't 
understand what other method is called that can create a user. And how can it 
get which user is trying to log in from the login form?

Sorry to say, I still don't have a clue on how to create my external 
authenticator.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=78b2ea20-d914-4c9c-8c38-06db36bc5002


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------





----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to