saml form not existing

Hi,

I am getting an error from a Javascript method that was automatically created by the ComponentSpace SAML library.




In my aspx page, this is not at all existing:


Any reason why?

Regards,
Demy

What is the error you’re seeing? Is it that “samlform” is missing?
Are you attempting to render a page as well as send a SAML message via HTTP-Post?
The HTML returned in the HTTP response to the browser includes some JavaScript and an HTML form.
The JavaScript automatically submits the HTML form resulting in an HTTP Post of the encoded SAML message being sent to the partner provider.
If there’s still an issue, please capture the HTTP traffic as an HAR file using browser developer tools and send this to support@componentspace.com as a file attachment and mentioning your forum post.
Also include the associated ASPX page and code behind.

[quote]
ComponentSpace - 5/28/2019
What is the error you're seeing? Is it that "samlform" is missing? Yes
Are you attempting to render a page as well as send a SAML message via HTTP-Post? No really render a page but the SP redirects so SSOService.aspx which goes back to the client (and yes, eventually renders it) then logs in the user.

The HTML returned in the HTTP response to the browser includes some JavaScript and an HTML form.
The JavaScript automatically submits the HTML form resulting in an HTTP Post of the encoded SAML message being sent to the partner provider.
If there's still an issue, please capture the HTTP traffic as an HAR file using browser developer tools and send this to support@componentspace.com as a file attachment and mentioning your forum post.
Also include the associated ASPX page and code behind.
[/quote]



[quote]
ComponentSpace - 5/28/2019
What is the error you're seeing? Is it that "samlform" is missing? Yes
Are you attempting to render a page as well as send a SAML message via HTTP-Post? No really render a page but the SP redirects so SSOService.aspx which goes back to the client (and yes, eventually renders it) then logs in the user.

The HTML returned in the HTTP response to the browser includes some JavaScript and an HTML form.
The JavaScript automatically submits the HTML form resulting in an HTTP Post of the encoded SAML message being sent to the partner provider.
If there's still an issue, please capture the HTTP traffic as an HAR file using browser developer tools and send this to support@componentspace.com as a file attachment and mentioning your forum post.
Also include the associated ASPX page and code behind.
[/quote]



[/quote]
Yes. samlform is missing.
No, I am not attempting to render the page but SSOService.aspx needs to be called by SP hence the redirection hence the rendering of the page to the browser.

I would need the HAR file and ASPX page/code behind to investigate.

[quote]
ComponentSpace - 5/29/2019
I would need the HAR file and ASPX page/code behind to investigate.
[/quote]

Hi,

I cannot give the HAR file as it will be a security concern.
Here is the code behind of SSOService.aspx:


[quote]
ComponentSpace - 5/29/2019
I would need the HAR file and ASPX page/code behind to investigate.
[/quote]

Hi,

I cannot give the HAR file as it will be a security concern.
Here is the code behind of SSOService.aspx:


[/quote]
By the way, this only happens for IE

We don’t have any code that’s browser specific. We’re not aware of any issues running on IE.
If you can’t provide a HAR file, I suggest using the browser developer tools for IE and Chrome to capture the network traffic and compare.
Also, run the ExampleIdentityProvider and ExampleServiceProvider projects to see if you can reproduce the issue.
https://www.componentspace.com/Forums/9351/Examples-Guide
If you can’t then compare the examples with your project.
We test these and other projects using all the popular browsers including IE (currently at version 11). All work without any issues.

[quote]
ComponentSpace - 5/31/2019
We don't have any code that's browser specific. We're not aware of any issues running on IE.
If you can't provide a HAR file, I suggest using the browser developer tools for IE and Chrome to capture the network traffic and compare.
Also, run the ExampleIdentityProvider and ExampleServiceProvider projects to see if you can reproduce the issue.
https://www.componentspace.com/Forums/9351/Examples-Guide
If you can't then compare the examples with your project.
We test these and other projects using all the popular browsers including IE (currently at version 11). All work without any issues.
[/quote]

This is now fixed. It seems that my SSOService.aspx is getting converted to IE5 compatibility looking at developer tools which is quite odd.
Nevertheless, I have ensured that the page has a header and a metadate that will force IE to use edge compatibility rather then IE5.

Thanks for the update.