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

[BUG] Could not load type 'Microsoft.Identity.Client.AuthScheme.Token' #48504

Open
ielbury opened this issue Mar 2, 2025 · 4 comments
Open
Assignees
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@ielbury
Copy link

ielbury commented Mar 2, 2025

Library name and version

Azure.IdentityBroker 1.2.0

Describe the bug

When upgraded from 1.1.0 to 1.2.0 get the following exception:

Could not load type 'Microsoft.Identity.Client.AuthScheme.TokenType' from assembly 'Microsoft.Identity.Client, Version=4.67.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae'.

Azure.Identity.Broker 1.1.0 works with Azure.Identity 1.13.2 and 1.14.0-beta.
Azure.Identity.Broker 1.2.0 does not work with Azure.Identity 1.13.2 or 1.14.0-beta.

Expected behavior

No type load exception.

Actual behavior

Could not load type 'Microsoft.Identity.Client.AuthScheme.TokenType' from assembly 'Microsoft.Identity.Client, Version=4.67.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae'.

Reproduction Steps

var credential = new InteractiveBrowserCredential(new InteractiveBrowserCredentialBrokerOptions(windowHandle));
var client = new ArmClient(credential, subscriptionId);
var subscription = client.GetDefaultSubscription();

Does not work.

  <ItemGroup>
	  <PackageReference Include="Azure.Identity" Version="1.13.2" />
	  <PackageReference Include="Azure.Identity.Broker" Version="1.2.0" />
	  <PackageReference Include="Azure.ResourceManager.Compute" Version="1.7.0" />
  </ItemGroup>

Works.

  <ItemGroup>
	  <PackageReference Include="Azure.Identity" Version="1.13.2" />
	  <PackageReference Include="Azure.Identity.Broker" Version="1.1.0" />
	  <PackageReference Include="Azure.ResourceManager.Compute" Version="1.7.0" />
  </ItemGroup>

Environment

dotnet 9.0
Windows 11
Visual Studio 2022

@github-actions github-actions bot added Azure.Identity Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Mar 2, 2025
Copy link

github-actions bot commented Mar 2, 2025

Thank you for your feedback. Tagging and routing to the team member best able to assist.

@christothes
Copy link
Member

christothes commented Mar 3, 2025

Hi @ielbury -
Sorry that you encountered this issue. We will fix this in the next release, but in the meantime, installing Microsoft.Identity.Client.Broker version 4.67.2 directly should resolve the issue.

@christothes christothes added the needs-author-feedback Workflow: More information is needed from author to address the issue. label Mar 3, 2025
@github-actions github-actions bot removed the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Mar 3, 2025
Copy link

github-actions bot commented Mar 3, 2025

Hi @ielbury. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

@ielbury
Copy link
Author

ielbury commented Mar 3, 2025

Thanks, this is not a showstopper for me as my work around is to not upgrade.

Just documenting the issue.

@github-actions github-actions bot added needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team and removed needs-author-feedback Workflow: More information is needed from author to address the issue. labels Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
Status: Untriaged
Development

No branches or pull requests

2 participants