Skip to content

Smoke tests found bug in DefaultAzureCredential in sovereign clouds #10774

@danieljurek

Description

@danieljurek

Nightly smoke test runs found an issue with Identity when setting an authority host for DefaultAzureCredential.

Sample code:

// ...
                new DefaultAzureCredentialBuilder()
                    .authorityHost(authorityHost)
                    .build()

// other operations using that credential 

Expected: Authenticated scenarios work

Actual: Error message

com.microsoft.aad.msal4j.MsalServiceException: AADSTS900382: Confidential Client is not supported in Cross Cloud request.

(example pipeline execution)

This error is frequently seen when running against sovereign clouds when the Identity library is using the default authority host instead of the authority host of the cloud in use.

Metadata

Metadata

Labels

Azure.IdentityClientThis issue points to a problem in the data-plane of the library.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions