Different Entry point for logging into the Application

0
0

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.

  • You must to post comments
0
0

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

 

  • edmond girardi
    So i’f i’m understating – i will make a new page – lets say SSO.aspx – in there i capture the SAML Post as we do in VWG. this page also has the script src=”wisej.wx” tag . In this new page we will also populate Wise.userData. Then where do we retrieve this userData ? in our mainform of the WiseJ application ?
  • Luca (ITG)
    Application.Browser.UserData. It’s a dynamic object. Wisej.userData = {name:”} Will be on server Application.Browser.UserData.name.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.