Skip to content

Connect to Workspace Supports Tenant ID Resource Identifier#3303

Open
ScottCarda-MS wants to merge 5 commits into
mainfrom
sccarda/EntraIdAuth
Open

Connect to Workspace Supports Tenant ID Resource Identifier#3303
ScottCarda-MS wants to merge 5 commits into
mainfrom
sccarda/EntraIdAuth

Conversation

@ScottCarda-MS

@ScottCarda-MS ScottCarda-MS commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

This expands the ability of the Connect to Workspace feature to be able to consume resource identification strings containing tenant ids, in addition to being able to consume connection strings with API keys. When connecting to a resource with a resource identification string, the user will be authenticated with Entra ID.

@ScottCarda-MS ScottCarda-MS changed the title Sccarda/entra id auth Connect to Workspace Supports Tenant ID Resource Identifier Jun 10, 2026
@ScottCarda-MS ScottCarda-MS marked this pull request as ready for review June 10, 2026 20:47

@amcasey amcasey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems sensible. Minor suggestions

Comment thread source/vscode/src/azure/workspaceActions.ts Outdated
Comment thread source/vscode/src/azure/workspaceActions.ts Outdated
Comment thread source/vscode/src/azure/workspaceActions.ts
Comment thread source/vscode/src/azure/workspaceActions.ts Outdated
// cancelled (e.g. the account is not a member of the tenant, or consent
// was denied). Without this branch the failure would surface only as a
// generic message, appearing to fail silently to the user.
errorText = `Authentication failed. Unable to sign in to ${workspaceDescription}. Please verify the account has access to this workspace and try again.`;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm finding this all a bit convoluted to follow now, and I'm not sure I understand how the various use-cases interact with this code. Let's discuss and clarify (and maybe put in comments for posterity).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The tenant id and the api key handling have been separated, so hopefully that brings some clarity and cleanliness to the code that you are looking for.

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.

3 participants