Skip to content

Commit e86eed6

Browse files
bluewwMaddie Clayton
authored andcommitted
Fix the issue that AdalConfiguration can't create from real value of resource (#6243)
1 parent e9dbc00 commit e86eed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/Commands.Common.Authentication/Factories/AuthenticationFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ private AdalConfiguration GetAdalConfiguration(IAzureEnvironment environment, st
447447
return new AdalConfiguration
448448
{
449449
AdEndpoint = adEndpoint.ToString(),
450-
ResourceClientUri = environment.GetEndpoint(resourceId),
450+
ResourceClientUri = audience,
451451
AdDomain = tenantId,
452452
ValidateAuthority = !environment.OnPremise,
453453
TokenCache = tokenCache

0 commit comments

Comments
 (0)