Skip to content

Commit

Permalink
fix: fix bug with authentication failure when environment is changed (#…
Browse files Browse the repository at this point in the history
…347)

closes #346
  • Loading branch information
calebkiage authored Feb 13, 2024
1 parent 4063b08 commit eba1c70
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public async Task SaveAuthenticationIdentifiersAsync(string? clientId, string? t
if (
clientId != authOptions.ClientId || tenantId != authOptions.TenantId || certificateName != authOptions.ClientCertificateName ||
certificateThumbPrint != authOptions.ClientCertificateThumbPrint || strategy != authOptions.Strategy ||
(authOptions.Authority is not null && adAuthority != new Uri(authOptions.Authority))
(authOptions.Authority is not null && adAuthority != new Uri(authOptions.Authority)) || environment != authOptions.Environment
)
{
configuration.AuthenticationOptions = new AuthenticationOptions
Expand Down

0 comments on commit eba1c70

Please sign in to comment.