Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-902

SSO topology name is hardcoded in knoxauth.js

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.11.0
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:
      None

      Description

      The topology name for Knox SSO is hardcoded in knoxauth.js file:

      var loginURL = "/gateway/knoxsso/api/v1/websso?originalUrl=";
      

      If I create a proper topology file for Knox SSO under the name e.g something.xml then it does not work since the knoxauth.js always posts data to /gateway/knoxsso/api/v1... instead of /gateway/something/api/v1...

      It would be better if the loginURL could be determined from the actual URL, e.g. if the login page is loaded from:

      /gateway/something/knoxauth/login.html
      

      then the JS would post the request to:

      /gateway/something/api/v1/websso?originalUrl="
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              akanto Attila Kanto
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: