| Author |
Login Portlet -- WPS 5.0
|
|
| portal developer 2006-11-16, 7:31 am |
| Hi All,
We have developed a custom JASS login module and configured it in the Portal_LTPA configurations.
This custom login module throws different LoginExcepton with differnt messages based on what the authentication has failed.
Now the login portlet should display custom login messages based on the LoginException instead of the default login failed message "Invaild username and password". Does anyone have any ideas how the login portlet can be modifed to make this work? Or else
is there any way that I can extend the functionality of the login portlet and make this work?
Any ideas are appreciated!!!
| |
| oliver 2006-11-17, 1:27 am |
| There are many message in the portlet, you could modify the message which accordes to you.In the portlet code aspect , I do not think that you need to modify it.
It just inspectes username and password. good luck.
| |
| portal developer 2006-11-22, 1:40 am |
| Thanks for your reply.
My question was not customizing the error message, but make the login portlet display error messages dynamically on what my login module has failed.
To make it more clear here are more details of my requirement and the problem that I am facing :-
We have developed a custom login module and configured it in the Portal_LTPA configurations. This login module was developed and configured with the help of the article "Integrating WebSphere Portal into your security environment and user management syste
m" present in the articles library.
The jaas login module is working fine. The requirement like this as given below:-
* Authenticate the user with the LDAP. (For this the default login portlet is displaying "username nad passsword are not valid") when ever the user authentication fails, which is ok
* If the user is authenticated, then check for couple of tables if the system is avaliable or not. I am taking one of my use case. (And also simillar conditions are checked, but a different custom error message is to be displayed). If it is not avaliable
display custom login error message saying that "The system is not avaliable. Please come back later" on the login portlet. What ever the jass login exception that is thown by the login module which we have developed, the login portlet only displays the sa
me default message "username nad passsword are not valid" which we dont want.
Not sure how to customize the login portlet to display dynamically the message present in the login exception.
I tried to look in the login portlet by decompiling, it calls up com.ibm.wps.portletservice.authentication.AuthenticationPortletService. Not sure how does the jass login exception thrown by the custom login module is converted into one of custom IBM login
exception when it comes to the login portlet.
Any ideas to get this done are welcomed.
| |
| oliver 2006-11-22, 7:29 am |
| I think that you should write the custom service implement. The message what you want is more detail that IBM providers. You need more infomation about the service
layer implement to do it , not the present layer.
| |
| portal developer 2006-11-22, 1:18 pm |
| I was able to resolve this.
By setting one of the prefrences in the portlet.xml for the login portlet and modifying the login portlet jsp, I was able to resolve this.
Thanks for all your help
|
|
|
|