Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update redirect-uri to localhost #20692

Merged
merged 14 commits into from
Sep 30, 2022
Merged

Update redirect-uri to localhost #20692

merged 14 commits into from
Sep 30, 2022

Conversation

cssuh
Copy link
Member

@cssuh cssuh commented Sep 29, 2022

Updating our redirect-uri from an external website (https://vscode-redirect.azurewebsites.net/) to http://localhost/redirect. This unblocks proxy users from adding their accounts to ADS.

Fixes #17356

@@ -93,7 +93,7 @@ const publicAzureSettings: ProviderSettings = {
endpoint: 'https://analysis.windows.net/powerbi/api',
azureResourceId: AzureResource.PowerBi
},
redirectUri: 'https://vscode-redirect.azurewebsites.net/',
redirectUri: 'http://localhost',
Copy link
Contributor

Choose a reason for hiding this comment

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

Per https://learn.microsoft.com/en-us/azure/active-directory/develop/reply-url#localhost-exceptions we should be using 127.0.0.1 instead of localhost - although they also mention you have to do some wonky configuration to do that which seems odd...

Copy link
Member Author

Choose a reason for hiding this comment

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

I saw that too, but I think we'll just use localhost for now, that's also what SSMS is doing

@@ -20,7 +20,7 @@ import { MicrosoftAuthenticationSession } from './microsoft-authentication';

const localize = nls.loadMessageBundle();

const redirectUrl = 'https://vscode-redirect.azurewebsites.net/';
const redirectUrl = 'http://localhost/redirect';
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this even used anywhere? Since we use our own custom account handler I didn't think there was anywhere in the app users could actually sign in to their Microsoft account.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think this is used anywhere.

Copy link
Contributor

Choose a reason for hiding this comment

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

This should have a SQL CARBON EDIT. But if it's not used anywhere I would suggest just reverting it - the fewer changes we make to VS Code stuff the easier merges are.

@cssuh cssuh merged commit 2a3e41e into main Sep 30, 2022
@cssuh cssuh deleted the chsuh/proxy branch September 30, 2022 15:59
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.

Sign in to Azure is stuck when using Proxy
2 participants