Forum Discussion
Browser not initiating a POST in Client Initiated Forms based SSSO
Hello,
I am trying to do a client initiated forms based SSO for Oracle EBS. F5 is inserting the java script on the form but browser somehow does not initiate the POST request. Any ideas ? I am using 11.6.0 HF3.
Thank you in advance.
Java Script Inserted by F5 -:
14 Replies
- Arnaud_Lemaire
Employee
Hello,
could you try to activate APM debug, and paste some of them from /var/log/apm ?
do you see your script in the page delivered to end user ?
to facilitate troubleshooting you can remove the visibility=hidden and body.styp = none from the script.
- Pratik_125797
Nimbostratus
Yes I can see the script getting delivered to the browser on the login form. Will update the debug results here.
- Kevin_Stewart
Employee
In most cases (that I've seen) it's usually form identification that's to blame. The SSO needs to know what to look for - with some combination of form action, form name, form location, attribute names, response criteria, etc.
- Michael_Jenkins
Cirrostratus
One thing I have noticed with client initiated SSO is that if there is a submit button with the id/name
, the javascript call to submit the form won't work. In those cases, I've had to update the SSO profile to include extra Javascript to rename the submit button or else just programatically click the submit button instead.submit - NN_210021
Nimbostratus
I have a similar problem, where the javascript get inserted, but i get the following:
TypeError: __f5action.indexOf is not a function var __f5qsep = (__f5action.indexOf('?') == -1) ? '?' : '&';
F5_Inflate_onevent(document.body,[0x6f,0x6e,0x6b,0x65,0x79,0x64,0x6f,0x77,0x6e],0,function(e){return false;}); document.body.style.visibility='hidden'; document.body.style.display='none'; function __f5submit() { var __f5form = document.forms[2]; F5_Invoke_setAttribute(__f5form,'autocomplete', 'off'); F5_Inflate_value(__f5form.username,[0x76,0x61,0x6c,0x75,0x65],0,'PeteXY'); F5_Inflate_value(__f5form.password,[0x76,0x61,0x6c,0x75,0x65],0,'f5-sso-token'); ; var __f5action = F5_Deflate_action(__f5form); var __f5qsep = (__f5action.indexOf('?') == -1) ? '?' : '&'; F5_Inflate_action(__f5form,0,__f5action + __f5qsep + 'f5-sso-form=user_login'); ; F5_Invoke_submit(__f5form); } if (window.addEventListener) { F5_Invoke_addEventListener(window,'load',__f5submit,false); } else if (window.attachEvent) { F5_Invoke_attachEvent(window,'onload',__f5submit); } else { F5_Inflate_onload(window,0,__f5submit); }
Besides username and password, there is a and a tag
Do i need the specify the hinddden parameter, altough it already has a predefined value ?
- Michael_Jenkins
Cirrostratus
you may need to change the name or remove the tag. My guess is that it's causing an issue because the javascript uses the "action" attribute on the tag, which should have an indexOf function because it's a string. - NN_212657
Nimbostratus
That made the deal, THANKS!
- Pratik_125797
Nimbostratus
Hello Michael,
Yes there is a submit button. I am trying to use it with Oracle EBS. I tried to add the form id in form identification, also upgraded the F5 to 11.6 HF5 but it's still not working. I am new to Java, can you please give me some pointers or help me with what extra to add in Java script.
- Pratik_125797
Nimbostratus
Sorry ID of the button is "SubmitButton", will that create any issue ?
- Michael_Jenkins
Cirrostratus
no. that shouldn't cause an issue then.
- Pratik_125797
Nimbostratus
Well in that case it is something else which is not triggering the POST request. Any other help ? Has anyone implemented this with Oracle EBS ?
- gbbaus_104974Historic F5 Account
Hi
Did you solve this ? If so, How ?
If not ...
What are your username and password values in the Form ?
Do they contain "." , eg: MyUser.name ?
- Pratik_125797
Nimbostratus
Hello,
Yes I was able to fix it, with some help on Java and a case in F5. This script finally worked.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com