I'm running WL Studio 126.96.36.1994 and WL server Build Version: 188.8.131.523
I am developing a login page for an app in IBM CDL. I used form based authenticator and customized login module. I need to authenticate the group name, username and password. But in authenticator and login module's java file, I can only submit username and password and get them in login module's java file. So is there any possible solution to submit more than two fields and get all of them in login module's java file?
I find out that I have asked many questions recently. Pls don't feel bothered... ;) :)
This topic has been locked.
4 replies Latest Post - 2012-04-19T02:09:39Z by SystemAdmin
Pinned topic Question about authentication
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
AntonAleksandrov 270005D80F22 PostsACCEPTED ANSWER
Authentication concepts - http://www.worklight.com/download/get-started/4.2.1/module-20
Adapter based authentication - http://www.worklight.com/download/get-started/4.2.1/module-20.1
Sample - http://www.worklight.com/assets/files/Training%20Modules/Samples/module_20_1_DoubleandSingleStepAdapterBasedAuthentication.zip
Re: Question about authentication2012-04-18T19:05:08Z in response to SystemAdminI have a similar situation in that I need to pass one additional field to my custom login module.
I don't see any material in 20.2 tutorial to show how this can be done.
I see 20.1 mention using Adapter to carry additional data and you have said as much as well.
But I don't see how UserNamePasswordLoginModule class let you do that.
public boolean login(Map<String, Object> authenticationData)
authenticationData only has two items
Can you show code both in the JS and subclass of UserNamePasswordLoginModule how to handle additional field?
I am interested in how to use custom login module to do this and not how to use Adapter.
Re: Question about authentication2012-04-19T02:09:39Z in response to SystemAdminHi, There
Thank you for your reply!
My problem is just like what rogerwong faced. Besides, I need startup authentication. So I can only use form-based authenticator, then I can't find any solution to submit three fields to login module. In login module, as rogerwong said, I can only get username and password.