File tree 4 files changed +6
-6
lines changed
src/client/Microsoft.Identity.Client
tests/Microsoft.Identity.Test.Unit/CoreTests/InstanceTests
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -117,9 +117,9 @@ private AuthorityInfo(
117
117
/// <summary>
118
118
/// For IWA
119
119
/// </summary>
120
- internal bool IsUserAssertionSupported =>
121
- AuthorityType != AuthorityType . Adfs &&
122
- AuthorityType != AuthorityType . B2C ;
120
+ internal bool IsWsTrustFlowSupported =>
121
+ AuthorityType == AuthorityType . Aad ||
122
+ AuthorityType == AuthorityType . Dsts ;
123
123
124
124
/// <summary>
125
125
/// Authority supports multi-tenancy. ADFS and Generic authorities are not tenanted.
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ protected override async Task<AuthenticationResult> ExecuteAsync(CancellationTok
52
52
53
53
private async Task < UserAssertion > FetchAssertionFromWsTrustAsync ( )
54
54
{
55
- if ( ! AuthenticationRequestParameters . AuthorityInfo . IsUserAssertionSupported )
55
+ if ( ! AuthenticationRequestParameters . AuthorityInfo . IsWsTrustFlowSupported )
56
56
{
57
57
//IWA is currently not supported in pure adfs environments. See https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/2771
58
58
throw new MsalClientException (
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ private async Task<MsalTokenResponse> GetTokenResponseAsync(CancellationToken ca
106
106
107
107
private async Task < UserAssertion > FetchAssertionFromWsTrustAsync ( )
108
108
{
109
- if ( ! AuthenticationRequestParameters . AuthorityInfo . IsUserAssertionSupported )
109
+ if ( ! AuthenticationRequestParameters . AuthorityInfo . IsWsTrustFlowSupported )
110
110
{
111
111
return null ;
112
112
}
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public void DstsAuthorityFlags()
98
98
Assert . IsTrue ( ( app . AppConfig as ApplicationConfiguration ) . Authority . AuthorityInfo . CanBeTenanted ) ;
99
99
Assert . IsTrue ( ( app . AppConfig as ApplicationConfiguration ) . Authority . AuthorityInfo . IsClientInfoSupported ) ;
100
100
Assert . IsFalse ( ( app . AppConfig as ApplicationConfiguration ) . Authority . AuthorityInfo . IsInstanceDiscoverySupported ) ;
101
- Assert . IsTrue ( ( app . AppConfig as ApplicationConfiguration ) . Authority . AuthorityInfo . IsUserAssertionSupported ) ;
101
+ Assert . IsTrue ( ( app . AppConfig as ApplicationConfiguration ) . Authority . AuthorityInfo . IsWsTrustFlowSupported ) ;
102
102
}
103
103
104
104
[ TestMethod ]
You can’t perform that action at this time.
0 commit comments