Skip to content

KNOX-1919 - Taking gateway.path into consideration when processing redirectToUrl provider param with the OOTB knoxsso.xml sample#113

Merged
risdenk merged 1 commit intoapache:masterfrom
smolnar82:KNOX-1919
Jul 10, 2019
Merged

Conversation

@smolnar82
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Before my change, the redirectToUrl parameter in the OOTB knoxsso.xml topology was hardcoded to /gateway/knoxsso/knoxauth/login.html. In case we changed the gateway.path configuration element the admin UI became unreachable. If you knew where to find the root cause it was easy to fix it, but we can do this smarter.
I changed the sample URL to /${GATEWAY_PATH}/knoxsso/knoxauth/login.html and made sure to replace the ${GATEWAY_PATH} placeholder with the actual value of gateway.path.

How was this patch tested?

Tested manually as follows:

  1. changed gateway.path to smolnar_test in gateway-site.xml
  2. restarted the server
  3. hit the following URL: https://localhost:8443/smolnar_test/manager/admin-ui/
  4. as expected I got redirected to the proper URL

Screen Shot 2019-07-10 at 3 36 09 PM

…directToUrl provider param with the OOTB knoxsso.xml sample
@smolnar82
Copy link
Copy Markdown
Contributor Author

@risdenk @pzampino @moresandeep - please review my changes! Thanks!

@risdenk risdenk self-assigned this Jul 10, 2019
@smolnar82
Copy link
Copy Markdown
Contributor Author

@risdenk - could you please re-trigger the Travis job; the error is unrelated to my change. Thanks!

@risdenk
Copy link
Copy Markdown
Contributor

risdenk commented Jul 10, 2019

yup kicked the one build off again :)

@risdenk risdenk merged commit e90beea into apache:master Jul 10, 2019
@smolnar82 smolnar82 deleted the KNOX-1919 branch July 12, 2019 12:27
twmarshall pushed a commit to twmarshall/knox that referenced this pull request Aug 27, 2019
…ocessing redirectToUrl provider param with the OOTB knoxsso.xml sample (apache#113)

Change-Id: I4c806abc980ab886240a852f79d1bb06192a2169
stoty pushed a commit to stoty/knox that referenced this pull request May 14, 2024
…ocessing redirectToUrl provider param with the OOTB knoxsso.xml sample (apache#113)

Change-Id: I4c806abc980ab886240a852f79d1bb06192a2169
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants