[ https://issues.apache.org/jira/browse/KNOX-902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15901793#comment-15901793 ]
ASF subversion and git services commented on KNOX-902: ------------------------------------------------------ Commit 56176ef442f1ff605d7701ec610bccc7a0375131 in knox's branch refs/heads/master from [~moresandeep] [ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=56176ef ] KNOX-902 - Fix the hardcoded knoxsso topology name (Attila Kanto via Sandeep More) > SSO topology name is hardcoded in knoxauth.js > --------------------------------------------- > > Key: KNOX-902 > URL: https://issues.apache.org/jira/browse/KNOX-902 > Project: Apache Knox > Issue Type: Improvement > Affects Versions: 0.11.0 > Reporter: Attila Kanto > Fix For: 0.12.0 > > Attachments: knox-902.patch > > > The topology name for Knox SSO is hardcoded in knoxauth.js file: > {code} > var loginURL = "/gateway/knoxsso/api/v1/websso?originalUrl="; > {code} > 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: > {code} > /gateway/something/knoxauth/login.html > {code} > then the JS would post the request to: > {code} > /gateway/something/api/v1/websso?originalUrl=" > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)