Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

[Web Portal] remove pylon address dependency #3040

Merged
merged 2 commits into from
Jul 2, 2019

Conversation

sunqinzheng
Copy link
Contributor

No description provided.

@sunqinzheng sunqinzheng requested review from ydye and abuccts July 2, 2019 05:30
@coveralls
Copy link

coveralls commented Jul 2, 2019

Coverage Status

Coverage increased (+4.4%) to 55.584% when pulling e065926 on qinsu/portal/pylon-address into f58834d on pai-0.14.y.

@@ -79,7 +80,10 @@ const Index = () => {
if (config.authnMethod === 'basic') {
setLoginModal(true);
} else {
location.href = config.restServerUri + '/api/v1/authn/oidc/login?redirect_uri=' + encodeURIComponent(config.pylonAddress+'/index.html')+ '&callback=' + encodeURIComponent(location.href);
location.href = config.restServerUri + `/api/v1/authn/oidc/login?${querystring.stringify({
redirect_uri: new URL('/index.html', window.location.href).href,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anything is needed to be updated here?

state = decodeURIComponent(req.query.redirect_uri);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think express's req.query is already parsed by querystring or qs. You don't need to decode it twice.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right,

@sunqinzheng sunqinzheng merged commit 62eb465 into pai-0.14.y Jul 2, 2019
@sunqinzheng sunqinzheng deleted the qinsu/portal/pylon-address branch July 2, 2019 10:05
debuggy pushed a commit that referenced this pull request Jul 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants