Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ private AuthorityInfo(
/// <summary>
/// For IWA
/// </summary>
internal bool IsUserAssertionSupported =>
AuthorityType != AuthorityType.Adfs &&
AuthorityType != AuthorityType.B2C;
internal bool IsWsTrustFlowSupported =>
AuthorityType == AuthorityType.Aad ||
AuthorityType == AuthorityType.Dsts;

/// <summary>
/// Authority supports multi-tenancy. ADFS and Generic authorities are not tenanted.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected override async Task<AuthenticationResult> ExecuteAsync(CancellationTok

private async Task<UserAssertion> FetchAssertionFromWsTrustAsync()
{
if (!AuthenticationRequestParameters.AuthorityInfo.IsUserAssertionSupported)
if (!AuthenticationRequestParameters.AuthorityInfo.IsWsTrustFlowSupported)
{
//IWA is currently not supported in pure adfs environments. See https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/2771
throw new MsalClientException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private async Task<MsalTokenResponse> GetTokenResponseAsync(CancellationToken ca

private async Task<UserAssertion> FetchAssertionFromWsTrustAsync()
{
if (!AuthenticationRequestParameters.AuthorityInfo.IsUserAssertionSupported)
if (!AuthenticationRequestParameters.AuthorityInfo.IsWsTrustFlowSupported)
{
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void DstsAuthorityFlags()
Assert.IsTrue((app.AppConfig as ApplicationConfiguration).Authority.AuthorityInfo.CanBeTenanted);
Assert.IsTrue((app.AppConfig as ApplicationConfiguration).Authority.AuthorityInfo.IsClientInfoSupported);
Assert.IsFalse((app.AppConfig as ApplicationConfiguration).Authority.AuthorityInfo.IsInstanceDiscoverySupported);
Assert.IsTrue((app.AppConfig as ApplicationConfiguration).Authority.AuthorityInfo.IsUserAssertionSupported);
Assert.IsTrue((app.AppConfig as ApplicationConfiguration).Authority.AuthorityInfo.IsWsTrustFlowSupported);
}

[TestMethod]
Expand Down