diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 2268744ee1..9d916999df 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -185,7 +185,6 @@ jobs: REACT_APP_NOMINATION_PERIOD: ${{secrets.REACT_APP_NOMINATION_PERIOD}} REACT_APP_COOLDOWN_PERIOD: ${{secrets.REACT_APP_COOLDOWN_PERIOD}} REACT_APP_USAGE_TIME: ${{secrets.REACT_APP_USAGE_TIME}} - REACT_APP_MIGRATION_PARAMETER: ${{secrets.REACT_APP_MIGRATION_PARAMETER}} CI: false id: builddeploy uses: Azure/static-web-apps-deploy@v0.0.1-preview diff --git a/src/modules/authentication/AuthenticationWrapper.ts b/src/modules/authentication/AuthenticationWrapper.ts index 24399df836..9d44ebba96 100644 --- a/src/modules/authentication/AuthenticationWrapper.ts +++ b/src/modules/authentication/AuthenticationWrapper.ts @@ -32,18 +32,6 @@ export class AuthenticationWrapper implements IAuthenticationWrapper { selectedVersion: '', sampleHeaders: [] }; - private extraQueryParameters: { [key: string]: string } = (() => { - const params: { [key: string]: string } = { - mkt: geLocale - }; - - const migrationParam = process.env.REACT_APP_MIGRATION_PARAMETER; - if (migrationParam) { - params.safe_rollout = migrationParam; - } - - return params; - })(); public static getInstance(): AuthenticationWrapper { if (!AuthenticationWrapper.instance) { @@ -85,7 +73,7 @@ export class AuthenticationWrapper implements IAuthenticationWrapper { authority: this.getAuthority(), prompt: 'select_account', redirectUri: getCurrentUri(), - extraQueryParameters: this.extraQueryParameters + extraQueryParameters: { mkt: geLocale } }; try { const result = await msalApplication.loginPopup(popUpRequest); @@ -217,10 +205,9 @@ export class AuthenticationWrapper implements IAuthenticationWrapper { authority: this.getAuthority(), prompt: 'select_account', redirectUri: getCurrentUri(), - extraQueryParameters: this.extraQueryParameters, + extraQueryParameters: { mkt: geLocale }, claims: this.getClaims() }; - console.log('popUpRequest', popUpRequest) if (this.consentingToNewScopes || this.performingStepUpAuth) { delete popUpRequest.prompt;