Single Sign on Question

0
0

Hello,  I asked a question a while back. just getting to implement it and having issues.

Original question:https://wisej.com/support/question/different-entry-point-for-logging-into-the-application

I created a SSO.aspx page that basically looks identical to the default.html. just running the page – does not start up the WiseJ application like default.html does.

What am I doing wrong ?

  • You must to post comments
0
0

Hi Edmond,

Just wanted to know if everything’s okay.
If not just let us know.

Best regards,
Alaa

  • You must to post comments
0
0

Forgot to add that you also need a .json configuration with the same name as the startup page. Default.json, SSO.json, etc. Usually for SAML signing I have seen customers using Default.aspx.

  1. Basically the html, php, aspx page is loaded by the browser, it downloads wisej.wx javascript, which starts wisej on the server which uses the Default.json to find the assembly and main method (main window to load).

2. The json can also refer back to the page because it’s used by the wisej module for “pretty urls”. If you don’t specify the extension (i.e. /SSO or /”) Wisej module looks up a json with the same name, then redirects the browser to the page specified in the json and back to 1.

  • You must to post comments
0
0

Sorry we missed the additional comment. For the user data:

Application.Browser.UserData. It’s a dynamic object.  Wisej.userData = {name:'<%=SAML[“Name”]%>’} Will be on server Application.Browser.UserData.name.

All you need to start up the wisej app is

<script src=”wisej.wx”></script>

And of course the handler in web.config.

 

  • edmond girardi
    So – 2nd question – how hard is it for me to upgrade to WiseJ 2.x – is it going to break anything ?
  • Luca
    • Luca
    • Feb 19, 2021 - 11:16 pm
    SAML already saves a ton of cookies. In any case the session doesn’t exist yet, it’s just a page being loaded by the browser.
  • edmond girardi
    Can the cookie be removed quickly after it is read by the main WiseJ application ?
  • Luca
    • Luca
    • Feb 22, 2021 - 4:45 pm
    Yes you can remove the cookie and you can also use instead the browser sessionStorage. See Application.Browser.Cookies, LocalStorage or SessionStorage.
  • Luca
    • Luca
    • Feb 22, 2021 - 4:47 pm
    >> how hard is it for me to upgrade to WiseJ 2.x – is it going to break anything ? Most likely.
Showing 3 results
Your Answer

Please first to submit.