Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit eba1c70

Browse files
authored
fix: fix bug with authentication failure when environment is changed (#347)
closes #346
1 parent 4063b08 commit eba1c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.Graph.Cli.Core/IO/AuthenticationCacheManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public async Task SaveAuthenticationIdentifiersAsync(string? clientId, string? t
6868
if (
6969
clientId != authOptions.ClientId || tenantId != authOptions.TenantId || certificateName != authOptions.ClientCertificateName ||
7070
certificateThumbPrint != authOptions.ClientCertificateThumbPrint || strategy != authOptions.Strategy ||
71-
(authOptions.Authority is not null && adAuthority != new Uri(authOptions.Authority))
71+
(authOptions.Authority is not null && adAuthority != new Uri(authOptions.Authority)) || environment != authOptions.Environment
7272
)
7373
{
7474
configuration.AuthenticationOptions = new AuthenticationOptions

0 commit comments

Comments
 (0)