[
https://issues.apache.org/jira/browse/KNOX-902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Kanto updated KNOX-902:
------------------------------
Attachment: knox-902.patch
Attached patch to determine the websso context path from URL
> 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
> 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)