-
Notifications
You must be signed in to change notification settings - Fork 108
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
Open Repository from Azure Repos, unable to specify tenant/DevOp organization #241
Comments
+1, as a consultant I suffer from the same problem. |
@TylerLeonhardt, it seems like we would require microsoft/vscode#115626 to support enumerating tenants for a given Microsoft auth credential--is that accurate? |
My understanding based on my latest conversation with @TylerLeonhardt is that we will also have to make some configuration changes to the AAD application have is handling the Microsoft authentication provider requests. |
Ok so here are the steps for us to light this up in the Azure Repos extension:
For the repo picker:
For vscode.dev: maybe it could do the same as the repo picker but instead, it'll infer the org and repo as it does today. The annoying part is folks in multiple tenants will always get a tenant picker every time they access a different repo. Maybe we can cache that somehow. |
Maybe have a gear icon on the quick pick item allowing users to configure a default/primary tenant in settings? |
I guess we could try the perf on minting a token per-tenant and then just hit the API with whatever ... and maybe cut off at 5 or so tenants. something like that. |
Thanks @TylerLeonhardt for your input. I think that everything is in place right now and next week I will try out the steps that were outlined in your comment - #241 (comment). That should hopefully address the scenario of using the picker, and then we can think of ways to address the issue when opening an Azure Repos repository using |
@andreabisiach, @Ettores88, the latest version of the Azure Repos extension contains improvements to better handle identities that are members of multiple Azure Active Directory tenants. When connecting to an Azure Repos repository, only users that are members of multiple tenants, will be presented with a "tenant picker". Could you please download the latest pre-release version of the extension and let us know if that resolves your problem. Thank you! |
Just tried with version v0.30.0 and I have the same problem. |
@lszomoru for me it works like a charm :) I just had to switch to insiders mode and it started to work. A tab restart might be needed in order to refresh the extensions. |
@lszomoru VS Code Azure Repos |
There are still couple of paper cuts that I would like to address so I am keeping this issue opened for couple of more days. |
Closing this issue and will track future work (ex: #333) as separate issues. |
Hello,
Setup:
My Azure Active Directory account (i.e. user@acme.onmicrosoft.com) has access to three AAD/Tenants.
The primary one, where I am registered (i.e. acme.onmicrosoft.com) and two secondaries where I am invited as a guest (ie:
acmecloud.onmicrosoft.com and acmecloud2.onmicrosoft.com
The same user has access two three DevOps organisations. Each one of these three organisations is connected to one of the AAD mentioned above/Tenant, ie:
dev.azure.com/Acme
dev.azure.com/AcmeCloud1
dev.azure.com/AcmeCloud2
Problem:
From VSCode I try:
I can only choose repos from dev.azure.com/Acme
I try from VSCode
I sign in and try again to open a remote repo
I can only choose repos from Acme
So there is no way to pick Repos from DevOps there are not connected to my primary AAD
The text was updated successfully, but these errors were encountered: