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

SSO topology name is hardcoded in knoxauth.js

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11.0
    • 0.12.0
    • None
    • 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

        1. knox-902.patch
          1 kB
          Attila Kanto

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: