[ 
https://issues.apache.org/jira/browse/KNOX-902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15899799#comment-15899799
 ] 

Attila Kanto commented on KNOX-902:
-----------------------------------

The patch also works for such cases when the gateway.path is set to a different 
value, e.g. gateway/something

{code}
    <property>
        <name>gateway.path</name>
        <value>gateway/something</value>
        <description>The default context path for the gateway.</description>
    </property>
{code}

> 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)

Reply via email to