Skip to content

Commit 4afa117

Browse files
committed
Merge branch 'main' into user/keyuxuan/update-azureauth-version-number-in-suppression-file-and-other-docs
2 parents 2444bc3 + 7552cc2 commit 4afa117

6 files changed

Lines changed: 7 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- Upgrade Lasso from `2024.8.24.1` to `2024.10.23.1`.
1414
- Upgrade from .NET 6 to .NET 8.
1515
- Disable trimmed version when publishing AzureAuth.
16+
- Remove IWA from default authentcation mode.
1617

1718
## [0.8.6] - 2024-04-25
1819
### Changed

src/AzureAuth.Test/AuthModeExtensionsTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public void CombinedAuthMode_Allowed()
3838
this.envMock.Setup(e => e.Get(EnvVars.NoUser)).Returns(string.Empty);
3939
this.envMock.Setup(e => e.Get("Corext_NonInteractive")).Returns(string.Empty);
4040

41-
var subject = new[] { AuthMode.IWA, AuthMode.Web, AuthMode.Broker };
41+
var subject = new[] { AuthMode.Web, AuthMode.Broker };
4242

4343
// Act + Assert
4444
subject.Combine().PreventInteractionIfNeeded(this.envMock.Object, this.logger).Should().Be(AuthMode.Default);

src/AzureAuth/Commands/CommandAad.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class CommandAad
6161
/// </summary>
6262
#if PlatformWindows
6363
public const string AuthModeHelperText = @"Authentication mode. Repeated invocations allowed.
64-
[default: iwa (Integrated Windows Auth), then broker, then web]
64+
[default: broker, then web]
6565
[possible values: all, iwa, broker, web, devicecode]";
6666
#else
6767
public const string AuthModeHelperText = @"Authentication mode. Repeated invocations allowed. [default: web]

src/MSALWrapper.Test/AuthFlow/AuthFlowFactoryTest.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,37 +111,33 @@ public void Broker_Only()
111111
[Test]
112112
public void Windows10Or11_Defaults()
113113
{
114-
this.MockIsWindows(true);
115114
this.MockIsWindows10Or11(true);
116115

117116
IEnumerable<IAuthFlow> subject = this.Subject(AuthMode.Default);
118117

119-
subject.Should().HaveCount(4);
118+
subject.Should().HaveCount(3);
120119
subject
121120
.Select(a => a.GetType())
122121
.Should()
123122
.ContainInOrder(
124123
typeof(CachedAuth),
125-
typeof(IntegratedWindowsAuthentication),
126124
typeof(Broker),
127125
typeof(Web));
128126
}
129127

130128
[Test]
131129
public void Windows_Defaults()
132130
{
133-
this.MockIsWindows(true);
134131
this.MockIsWindows10Or11(false);
135132

136133
IEnumerable<IAuthFlow> subject = this.Subject(AuthMode.Default);
137134

138-
subject.Should().HaveCount(3);
135+
subject.Should().HaveCount(2);
139136
subject
140137
.Select(a => a.GetType())
141138
.Should()
142139
.ContainInOrder(
143140
typeof(CachedAuth),
144-
typeof(IntegratedWindowsAuthentication),
145141
typeof(Web));
146142
}
147143

@@ -159,7 +155,6 @@ public void Windows10Or11_All()
159155
.Should()
160156
.ContainInOrder(
161157
typeof(CachedAuth),
162-
typeof(IntegratedWindowsAuthentication),
163158
typeof(Broker),
164159
typeof(Web),
165160
typeof(DeviceCode));

src/MSALWrapper.Test/AuthModeTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ public void AllIsAll()
2222
public void WindowsDefaultModes()
2323
{
2424
var subject = AuthMode.Default;
25-
subject.IsIWA().Should().BeTrue();
2625
subject.IsBroker().Should().BeTrue();
2726
subject.IsWeb().Should().BeTrue();
27+
subject.IsIWA().Should().BeFalse();
2828
subject.IsDeviceCode().Should().BeFalse();
2929
}
3030

src/MSALWrapper/AuthMode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public enum AuthMode : short
4747
/// <summary>
4848
/// Default auth mode.
4949
/// </summary>
50-
Default = IWA | Broker | Web,
50+
Default = Broker | Web,
5151
#else
5252
/// <summary>
5353
/// All auth modes.

0 commit comments

Comments
 (0)