Hello,
We currently have a VWG application we are trying to convert to WiseJ. In VWG, we have an ASP page for users logging in via SAML 2.0 (Single Sign on) from their location that passes us their credentials int the headers, as well as the whole SAML assertion chain of events. in the ASPX page we would set some session variables and then redirect to the VWG login page that checked to see if a session was already started, grab the user info from the session and auto login.
How can we accomplish this in WiseJ ?
Some users go to the normal login screen, while others (in a different company that have the capability) use SAML 2 to auto sign in to the application.
Hi Edmond,
To handle a SAML workflow you need a Default.aspx page and process the POSTed XML in the code behind. As you would do in a plain ASP.NET page. That will happen before your wisej app is loaded: the loading of the Wisej app happens when the browser is done loading the <script src=”wisej.wx”/> tag in the Default.aspx (or Default.html) page.
The code behind in aspx runs before since it runs on the server before the page is returned to the browser. There you can receive the SAML POST, process it, and pass it to the Wisej app using Wisej.userData in aspx:
<script> Wisej.userData = <%= a string from the aspx code that can also be a JSON string %> </script>
On the server side you will find the object in Application.Browser.UserData.
If the app is already started and the user is coming back you will get the Application.ApplicationRefresh event.
The workflow is identical to ASP.NET. It will be documented in detail in the upcoming extensive documentation we are building.
HTH
Please login first to submit.