Skip to content

Commit

Permalink
fix: ADDON-62193 encoded the redirect_uri upon opening the popup (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfultariya-crest authored Jun 2, 2023
1 parent 1c3b399 commit 3be7506
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/main/webapp/components/BaseFormView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,11 @@ class BaseFormView extends PureComponent {
parameters = `${parameters}&scope=${this.datadict.scope}`;
}

const host = encodeURI(
let host = encodeURI(
`https://${this.datadict.endpoint}${this.oauthConf.authCodeEndpoint}${parameters}`
);
const redirectURI = new URLSearchParams(host).get('redirect_uri');
host = host.replace(redirectURI, encodeURIComponent(redirectURI));

(async () => {
this.isCalled = false;
Expand Down

0 comments on commit 3be7506

Please sign in to comment.