Hello,
Smartclient version SmartClient_v90p_2013-09-12
When using the Relogin process as explained in the Smartclient documentation, I have set the actionURL in
doLogin : function () {
isc.RPCManager.sendRequest({
to j_security_check
But posting to this url gives 400 bad request and tomcat does not log me in.
I have tried to set actionURL to loginSuccessMarker.html and also credentialsURL and variations as shown below:
credentialsURL: "j_security_check",
credentialsURL: "loginSuccessMarker.html",
actionURL: "loginSuccessMarker.html",
etc.
Only setting credentialsURL posts the form to IDAcall servlet which does nothing for authentication. Putting actionURL to loginSuccessMarker.html also does not do authentication. To me it looks like setting actionURL to j_security_check is the correct thing to do because in the server logs I can see that authentication has happened and doAuthenticate method has returned true, but then how do I handle the fact that tomcat does not like authentication posted directly to j_security_check and returns a 400 bad request without logging me in?
Edit :
I have tried setting loginSuccessMarker.html as the page returned by the server for http response code 400 via web.xml without success. I can see the loginSuccessMarker.html page returned in the dev console but I am still not authenticated by the container.
I have attached my relogin.js file. Please advise..
Smartclient version SmartClient_v90p_2013-09-12
When using the Relogin process as explained in the Smartclient documentation, I have set the actionURL in
doLogin : function () {
isc.RPCManager.sendRequest({
to j_security_check
But posting to this url gives 400 bad request and tomcat does not log me in.
I have tried to set actionURL to loginSuccessMarker.html and also credentialsURL and variations as shown below:
credentialsURL: "j_security_check",
credentialsURL: "loginSuccessMarker.html",
actionURL: "loginSuccessMarker.html",
etc.
Only setting credentialsURL posts the form to IDAcall servlet which does nothing for authentication. Putting actionURL to loginSuccessMarker.html also does not do authentication. To me it looks like setting actionURL to j_security_check is the correct thing to do because in the server logs I can see that authentication has happened and doAuthenticate method has returned true, but then how do I handle the fact that tomcat does not like authentication posted directly to j_security_check and returns a 400 bad request without logging me in?
Edit :
I have tried setting loginSuccessMarker.html as the page returned by the server for http response code 400 via web.xml without success. I can see the loginSuccessMarker.html page returned in the dev console but I am still not authenticated by the container.
I have attached my relogin.js file. Please advise..
Comment