-
Notifications
You must be signed in to change notification settings - Fork 906
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
Conversation
extensions/azurecore/src/account-provider/auths/azureAuthCodeGrant.ts
Outdated
Show resolved
Hide resolved
@@ -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', |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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