You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Attila Kanto (JIRA)" <ji...@apache.org> on 2017/03/06 10:20:33 UTC

[jira] [Updated] (KNOX-902) SSO topology name is hardcoded in knoxauth.js

     [ https://issues.apache.org/jira/browse/KNOX-902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Attila Kanto updated KNOX-902:
------------------------------
    Description: 
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/... instead of /gateway/something/...

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}

  was:
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 mysso.xml then it does not work since  the knoxauth.js  always posts data to /gateway/knoxsso/... instead of /gateway/mysso/...

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}


> 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
>
> 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/... instead of /gateway/something/...
> 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)