Jump to content
We've recently updated our Privacy Statement, available here ×

bixia.ji

Members
  • Posts

    3
  • Joined

  • Last visited

Community Answers

  1. bixia.ji's post in Can't have multiple visualize.js sessions when using authentication token was marked as the answer   
    I tried to update the file jasperserver-pro/scripts/bower_components/js-sdk/src/common/auth/Authentication.js to handle 200 as success, adding the following code:
     
    if (a === "success" && b.status == 200) {
    result = {success: true};
    dfd.resolve(result);
    return dfd;
    }
    [/code]
     
    after line 60 
     
    if(typeof response === "string"){[/code]
     
    Multiple tabs work with the change now.
     
    With this change, page refresh would also work without adding logout step following http://community.jaspersoft.com/questions/851277/sso-pre-auth-visualize 
     
×
×
  • Create New...