Skip to content

Commit 9bb0ff6

Browse files
committed
Add missing if
1 parent 5dc78c3 commit 9bb0ff6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

msal4j-sdk/src/main/java/com/microsoft/aad/msal4j/AbstractClientApplicationBase.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,10 @@ public T correlationId(String val) {
575575
aadAadInstanceDiscoveryResponse);
576576
}
577577

578-
((OidcAuthority) authenticationAuthority).setAuthorityProperties(
579-
OidcDiscoveryProvider.performOidcDiscovery(
580-
(OidcAuthority) authenticationAuthority, this));
578+
if (authenticationAuthority.authorityType == AuthorityType.OIDC) {
579+
((OidcAuthority) authenticationAuthority).setAuthorityProperties(
580+
OidcDiscoveryProvider.performOidcDiscovery(
581+
(OidcAuthority) authenticationAuthority, this));
582+
}
581583
}
582584
}

0 commit comments

Comments
 (0)