Skip to content

Commit 3664d8d

Browse files
authored
Merge pull request #2749 from AzureAD/release/2.5.0
Release version 2.5.0
2 parents a1d6191 + 90a88e0 commit 3664d8d

File tree

75 files changed

+908
-985
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+908
-985
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ body:
99
Our GitHub issues are meant exclusively for bug reports and feature requests. For questions about using MSAL for iOS and macOS, please refer to the [common issues and FAQ](https://github.com/AzureAD/microsoft-authentication-library-for-objc/wiki#getting-help-common-issues-and-faq). If your question is not addressed there, we encourage you to utilize Chat with Copilot for further assistance.
1010
1111
For issues affecting your app in production, please create a support ticket with your Microsoft representative.
12+
13+
- type: checkboxes
14+
attributes:
15+
label: Copilot Usage Confirmation
16+
description: "Please confirm before submitting:"
17+
options:
18+
- label: I have tried using GitHub Copilot to resolve this issue.
19+
required: true
1220

1321
- type: markdown
1422
attributes:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [2.5.0]
2+
* Awaiting MFA Delegate now automatically returns the AuthMethods to be used when calling MFA Challenge #2687
3+
* SDK now handles SMS as strong authentication method #2722
4+
15
## [2.4.2]
26
* Bug fix to prevent crash when deallocating STK SecKeyRef
37

MSAL.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MSAL"
3-
s.version = "2.4.2"
3+
s.version = "2.5.0"
44
s.summary = "Microsoft Authentication Library (MSAL) for iOS"
55
s.description = <<-DESC
66
The MSAL library for iOS gives your app the ability to begin using the Microsoft Cloud by supporting Microsoft Azure Active Directory and Microsoft Accounts in a converged experience using industry standard OAuth2 and OpenID Connect. The library also supports Microsoft Azure B2C for those using our hosted identity management service.

MSAL/IdentityCore

Submodule IdentityCore updated 42 files

MSAL/MSAL.xcodeproj/project.pbxproj

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -288,18 +288,14 @@
288288
289E156D2948EB8A006104D9 /* MSALNativeAuthCacheAccessor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 289E156C2948EB8A006104D9 /* MSALNativeAuthCacheAccessor.swift */; };
289289
289E44AC2C9D7A9E00F6B9D7 /* MFARequestChallengeError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 289E44AB2C9D7A9E00F6B9D7 /* MFARequestChallengeError.swift */; };
290290
289E44AD2C9D7A9E00F6B9D7 /* MFARequestChallengeError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 289E44AB2C9D7A9E00F6B9D7 /* MFARequestChallengeError.swift */; };
291-
289E44B62C9D7B0900F6B9D7 /* MFAGetAuthMethodsError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 289E44B52C9D7B0900F6B9D7 /* MFAGetAuthMethodsError.swift */; };
292-
289E44B72C9D7B0900F6B9D7 /* MFAGetAuthMethodsError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 289E44B52C9D7B0900F6B9D7 /* MFAGetAuthMethodsError.swift */; };
293291
289E44B92C9D843F00F6B9D7 /* MFARequestChallengeErrorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 289E44B82C9D843F00F6B9D7 /* MFARequestChallengeErrorTests.swift */; };
294292
289E44BA2C9D843F00F6B9D7 /* MFARequestChallengeErrorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 289E44B82C9D843F00F6B9D7 /* MFARequestChallengeErrorTests.swift */; };
295293
28A277C82C21F08800D95E00 /* MSAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D65A6F431E3FD30A00C69FBA /* MSAL.framework */; };
296294
28A277D92C22ED5E00D95E00 /* MSALNativeAuthEmailCodeRetriever.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A277D82C22ED5E00D95E00 /* MSALNativeAuthEmailCodeRetriever.swift */; };
297295
28A472EC2A276C3B003F988B /* MSALNativeAuthTokenValidatedResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A472EB2A276C3B003F988B /* MSALNativeAuthTokenValidatedResponse.swift */; };
298296
28A600962C78843C00455666 /* MFASendChallengeDelegateDispatcherTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A600942C78843300455666 /* MFASendChallengeDelegateDispatcherTests.swift */; };
299297
28A6009B2C7898DA00455666 /* MFADelegatesSpies.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A6009A2C7898DA00455666 /* MFADelegatesSpies.swift */; };
300-
28A6009D2C78A26D00455666 /* MFAGetAuthMethodsDelegateDispatcherTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A6009C2C78A26D00455666 /* MFAGetAuthMethodsDelegateDispatcherTests.swift */; };
301298
28A6009F2C78A27C00455666 /* MFASubmitChallengeDelegateDispatcherTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A6009E2C78A27C00455666 /* MFASubmitChallengeDelegateDispatcherTests.swift */; };
302-
28A600A12C78BA8900455666 /* MFAGetAuthMethodsErrorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A600A02C78BA8900455666 /* MFAGetAuthMethodsErrorTests.swift */; };
303299
28A600A32C78BA9C00455666 /* MFASubmitChallengeErrorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A600A22C78BA9C00455666 /* MFASubmitChallengeErrorTests.swift */; };
304300
28A600A62C78BDC100455666 /* AwaitingMFAStateTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A600A52C78BDC100455666 /* AwaitingMFAStateTests.swift */; };
305301
28A600A82C78BDD200455666 /* MFARequiredStateTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A600A72C78BDD200455666 /* MFARequiredStateTests.swift */; };
@@ -365,10 +361,8 @@
365361
28EE651B2C8B0FDD00015F90 /* MSALNativeAuthSignInIntrospectIntegrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28ABE1752C5D213700F5275D /* MSALNativeAuthSignInIntrospectIntegrationTests.swift */; };
366362
28EE651C2C8B0FF500015F90 /* MSALNativeAuthMFAControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A600A92C78E09F00455666 /* MSALNativeAuthMFAControllerTests.swift */; };
367363
28EE651D2C8B101000015F90 /* MFADelegatesSpies.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A6009A2C7898DA00455666 /* MFADelegatesSpies.swift */; };
368-
28EE651E2C8B103B00015F90 /* MFAGetAuthMethodsDelegateDispatcherTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A6009C2C78A26D00455666 /* MFAGetAuthMethodsDelegateDispatcherTests.swift */; };
369364
28EE651F2C8B107100015F90 /* MFASendChallengeDelegateDispatcherTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A600942C78843300455666 /* MFASendChallengeDelegateDispatcherTests.swift */; };
370365
28EE65202C8B107D00015F90 /* MFASubmitChallengeDelegateDispatcherTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A6009E2C78A27C00455666 /* MFASubmitChallengeDelegateDispatcherTests.swift */; };
371-
28EE65212C8B108A00015F90 /* MFAGetAuthMethodsErrorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A600A02C78BA8900455666 /* MFAGetAuthMethodsErrorTests.swift */; };
372366
28EE65222C8B109300015F90 /* MFASubmitChallengeErrorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A600A22C78BA9C00455666 /* MFASubmitChallengeErrorTests.swift */; };
373367
28EE65232C8B109D00015F90 /* AwaitingMFAStateTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A600A52C78BDC100455666 /* AwaitingMFAStateTests.swift */; };
374368
28EE65242C8B10AA00015F90 /* MFARequiredStateTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28A600A72C78BDD200455666 /* MFARequiredStateTests.swift */; };
@@ -2124,15 +2118,12 @@
21242118
289E15582948E601006104D9 /* MSALNativeAuthCacheInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MSALNativeAuthCacheInterface.swift; sourceTree = "<group>"; };
21252119
289E156C2948EB8A006104D9 /* MSALNativeAuthCacheAccessor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MSALNativeAuthCacheAccessor.swift; sourceTree = "<group>"; };
21262120
289E44AB2C9D7A9E00F6B9D7 /* MFARequestChallengeError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MFARequestChallengeError.swift; sourceTree = "<group>"; };
2127-
289E44B52C9D7B0900F6B9D7 /* MFAGetAuthMethodsError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MFAGetAuthMethodsError.swift; sourceTree = "<group>"; };
21282121
289E44B82C9D843F00F6B9D7 /* MFARequestChallengeErrorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MFARequestChallengeErrorTests.swift; sourceTree = "<group>"; };
21292122
28A277D82C22ED5E00D95E00 /* MSALNativeAuthEmailCodeRetriever.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MSALNativeAuthEmailCodeRetriever.swift; sourceTree = "<group>"; };
21302123
28A472EB2A276C3B003F988B /* MSALNativeAuthTokenValidatedResponse.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MSALNativeAuthTokenValidatedResponse.swift; sourceTree = "<group>"; };
21312124
28A600942C78843300455666 /* MFASendChallengeDelegateDispatcherTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MFASendChallengeDelegateDispatcherTests.swift; sourceTree = "<group>"; };
21322125
28A6009A2C7898DA00455666 /* MFADelegatesSpies.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MFADelegatesSpies.swift; sourceTree = "<group>"; };
2133-
28A6009C2C78A26D00455666 /* MFAGetAuthMethodsDelegateDispatcherTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MFAGetAuthMethodsDelegateDispatcherTests.swift; sourceTree = "<group>"; };
21342126
28A6009E2C78A27C00455666 /* MFASubmitChallengeDelegateDispatcherTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MFASubmitChallengeDelegateDispatcherTests.swift; sourceTree = "<group>"; };
2135-
28A600A02C78BA8900455666 /* MFAGetAuthMethodsErrorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MFAGetAuthMethodsErrorTests.swift; sourceTree = "<group>"; };
21362127
28A600A22C78BA9C00455666 /* MFASubmitChallengeErrorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MFASubmitChallengeErrorTests.swift; sourceTree = "<group>"; };
21372128
28A600A52C78BDC100455666 /* AwaitingMFAStateTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AwaitingMFAStateTests.swift; sourceTree = "<group>"; };
21382129
28A600A72C78BDD200455666 /* MFARequiredStateTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MFARequiredStateTests.swift; sourceTree = "<group>"; };
@@ -3186,7 +3177,6 @@
31863177
isa = PBXGroup;
31873178
children = (
31883179
28A600942C78843300455666 /* MFASendChallengeDelegateDispatcherTests.swift */,
3189-
28A6009C2C78A26D00455666 /* MFAGetAuthMethodsDelegateDispatcherTests.swift */,
31903180
28A6009E2C78A27C00455666 /* MFASubmitChallengeDelegateDispatcherTests.swift */,
31913181
);
31923182
path = mfa;
@@ -3360,7 +3350,6 @@
33603350
28F8D2A02D8C7A49005084FA /* RegisterStrongAuthSubmitChallengeError.swift */,
33613351
28D811E42C735D98002BE1AA /* MFASubmitChallengeError.swift */,
33623352
289E44AB2C9D7A9E00F6B9D7 /* MFARequestChallengeError.swift */,
3363-
289E44B52C9D7B0900F6B9D7 /* MFAGetAuthMethodsError.swift */,
33643353
);
33653354
path = error;
33663355
sourceTree = "<group>";
@@ -5202,7 +5191,6 @@
52025191
E2CE911B2B0BA48D0009AEDD /* RetrieveAccessTokenErrorTests.swift */,
52035192
E2CE911D2B0BA4A60009AEDD /* SignInAfterSignUpErrorTests.swift */,
52045193
E2C190762B20DF4300095534 /* SignInAfterResetPasswordErrorTests.swift */,
5205-
28A600A02C78BA8900455666 /* MFAGetAuthMethodsErrorTests.swift */,
52065194
28A600A22C78BA9C00455666 /* MFASubmitChallengeErrorTests.swift */,
52075195
289E44B82C9D843F00F6B9D7 /* MFARequestChallengeErrorTests.swift */,
52085196
);
@@ -7015,7 +7003,6 @@
70157003
E2F890052B755355001FBC7C /* MSALNativeAuthUnknownCaseProtocol.swift in Sources */,
70167004
E2EFAD092A69A34300D6C3DE /* CodeRequiredGenericResult.swift in Sources */,
70177005
E2EFAD0C2A69B45100D6C3DE /* SignUpResults.swift in Sources */,
7018-
289E44B62C9D7B0900F6B9D7 /* MFAGetAuthMethodsError.swift in Sources */,
70197006
DE8973FA2DA5274000C67203 /* MSALNativeAuthJITIntrospectResponse.swift in Sources */,
70207007
DE8973FB2DA5274000C67203 /* MSALNativeAuthJITContinueResponse.swift in Sources */,
70217008
DE8973FD2DA5274000C67203 /* MSALNativeAuthJITChallengeResponse.swift in Sources */,
@@ -7318,7 +7305,6 @@
73187305
DE8DC4BB2C6621BD00534E8F /* MSALNativeAuthSignInChallengeValidatedResponse.swift in Sources */,
73197306
DEEFCDA02DAEC07700237F5A /* JITResults.swift in Sources */,
73207307
94E876CE1E492D6000FB96ED /* MSALAuthority.m in Sources */,
7321-
289E44B72C9D7B0900F6B9D7 /* MFAGetAuthMethodsError.swift in Sources */,
73227308
DE8DC4DB2C6621CC00534E8F /* MSALNativeAuthSignUpStartResponseError.swift in Sources */,
73237309
289D138E2DF336390008CB1A /* MSALNativeAuthGenericError.swift in Sources */,
73247310
DE8DC4E52C6621D000534E8F /* MSALNativeAuthResetPasswordContinueResponseError.swift in Sources */,
@@ -7406,7 +7392,6 @@
74067392
buildActionMask = 2147483647;
74077393
files = (
74087394
23A169B52073325500B051F3 /* MSALPublicClientApplicationTests.m in Sources */,
7409-
28A600A12C78BA8900455666 /* MFAGetAuthMethodsErrorTests.swift in Sources */,
74107395
D61F5BC01E5913BE00912CB8 /* SFSafariViewController+TestOverrides.m in Sources */,
74117396
B2725ED022C04689009B454A /* MSALLegacySharedAccountFactoryTests.m in Sources */,
74127397
E22427EE2B06637C0006C55E /* SignUpAttributesRequiredDelegateDispatcherTests.swift in Sources */,
@@ -7571,7 +7556,6 @@
75717556
E25E6E5A2AA7727D0094461E /* MSALNativeAuthCredentialsControllerMock.swift in Sources */,
75727557
B286B9FD238A07A5007833AD /* MSALAcquireTokenTests.m in Sources */,
75737558
E22427F42B066BBC0006C55E /* SignInStartDelegateDispatcherTests.swift in Sources */,
7574-
28A6009D2C78A26D00455666 /* MFAGetAuthMethodsDelegateDispatcherTests.swift in Sources */,
75757559
DE5738B22A8E71D500D9120D /* MSALNativeAuthResetPasswordContinueResponseErrorTests.swift in Sources */,
75767560
9B6EECEF2A3146ED008ABA50 /* MSALNativeAuthResetPasswordResponseValidatorTests.swift in Sources */,
75777561
E2CE911E2B0BA4A60009AEDD /* SignInAfterSignUpErrorTests.swift in Sources */,
@@ -7595,7 +7579,6 @@
75957579
isa = PBXSourcesBuildPhase;
75967580
buildActionMask = 2147483647;
75977581
files = (
7598-
28EE651E2C8B103B00015F90 /* MFAGetAuthMethodsDelegateDispatcherTests.swift in Sources */,
75997582
DE55549D2C0A1E0C008ECA1A /* SignInTestsValidatorHelpers.swift in Sources */,
76007583
DECE10182BE3F07C0036738C /* MSALNativeAuthTelemetryProviderTests.swift in Sources */,
76017584
DE5554AA2C0A1E0C008ECA1A /* MSALNativeAuthSignInControllerMock.swift in Sources */,
@@ -7639,7 +7622,6 @@
76397622
23F32F0D1FF4789200B2905E /* MSIDTestURLResponse+MSAL.m in Sources */,
76407623
DE8DC5602C66221A00534E8F /* MSALNativeAuthResponseCorrelatableTests.swift in Sources */,
76417624
DE8DC4FC2C6621E700534E8F /* MSALNativeAuthSignUpControllerTests.swift in Sources */,
7642-
28EE65212C8B108A00015F90 /* MFAGetAuthMethodsErrorTests.swift in Sources */,
76437625
DE8DC5492C66220D00534E8F /* MSALNativeAuthResetPasswordChallengeOauth2ErrorCodeTests.swift in Sources */,
76447626
DE8DC52A2C6621F700534E8F /* SignUpStartErrorTests.swift in Sources */,
76457627
DE8DC5692C66221A00534E8F /* MSALNativeAuthRequestableTests.swift in Sources */,

MSAL/resources/ios/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.4.2</string>
18+
<string>2.5.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

MSAL/resources/mac/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.4.2</string>
18+
<string>2.5.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSHumanReadableCopyright</key>

MSAL/src/MSAL_Internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
//------------------------------------------------------------------------------
2727

2828
#define MSAL_VER_HIGH 2
29-
#define MSAL_VER_LOW 4
30-
#define MSAL_VER_PATCH 2
29+
#define MSAL_VER_LOW 5
30+
#define MSAL_VER_PATCH 0
3131

3232
#define STR_HELPER(x) #x
3333
#define STR(x) STR_HELPER(x)

MSAL/src/native_auth/controllers/jit/MSALNativeAuthJITController.swift

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ final class MSALNativeAuthJITController: MSALNativeAuthBaseController, MSALNativ
9292
func requestJITChallenge(
9393
continuationToken: String,
9494
authMethod: MSALAuthMethod,
95-
verificationContact: String?,
95+
verificationContact: String,
9696
context: MSALNativeAuthRequestContext
9797
) async -> JITRequestChallengeControllerResponse {
9898
let event = makeAndStartTelemetryEvent(id: .telemetryApiIdJITChallenge, context: context)
@@ -153,7 +153,7 @@ final class MSALNativeAuthJITController: MSALNativeAuthBaseController, MSALNativ
153153
private func performAndValidateChallengeRequest(
154154
continuationToken: String,
155155
authMethod: MSALAuthMethod,
156-
verificationContact: String?,
156+
verificationContact: String,
157157
context: MSALNativeAuthRequestContext,
158158
logErrorMessage: String
159159
) async -> MSALNativeAuthJITChallengeValidatedResponse {
@@ -204,19 +204,15 @@ final class MSALNativeAuthJITController: MSALNativeAuthBaseController, MSALNativ
204204
private func createChallengeRequest(
205205
continuationToken: String,
206206
authMethod: MSALAuthMethod,
207-
verificationContact: String?,
207+
verificationContact: String,
208208
context: MSALNativeAuthRequestContext
209209
) -> MSIDHttpRequest? {
210210
do {
211-
var currentVerificationContact = authMethod.loginHint
212-
if let verificationContact, !verificationContact.isEmpty {
213-
currentVerificationContact = verificationContact
214-
}
215211
let params = MSALNativeAuthJITChallengeRequestParameters(
216212
context: context,
217213
continuationToken: continuationToken,
218214
authMethod: authMethod,
219-
verificationContact: currentVerificationContact
215+
verificationContact: verificationContact
220216
)
221217
return try jitRequestProvider.challenge(parameters: params, context: context)
222218
} catch {
@@ -284,9 +280,17 @@ final class MSALNativeAuthJITController: MSALNativeAuthBaseController, MSALNativ
284280
return .init(.completed(account), correlationId: context.correlationId(), telemetryUpdate: { [weak self] result in
285281
self?.stopTelemetryEvent(signInEvent, context: context, delegateDispatcherResult: result)
286282
})
283+
case .awaitingMFA(_, _):
284+
return .init(.error(error: .init(type: .generalError,
285+
message: "Unexpected result received: Awaiting MFA.",
286+
correlationId: context.correlationId(),
287+
errorCodes: [],
288+
errorUri: nil),
289+
newState: nil),
290+
correlationId: context.correlationId())
287291
case .jitAuthMethodsSelectionRequired(_, _):
288292
return .init(.error(error: .init(type: .generalError,
289-
message: "Unexpected result received when trying to signIn: strong authentication method registration required.", // swiftlint:disable:this line_length
293+
message: "Unexpected result received: strong authentication method registration required.",
290294
correlationId: context.correlationId(),
291295
errorCodes: [],
292296
errorUri: nil),

MSAL/src/native_auth/controllers/jit/MSALNativeAuthJITControlling.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protocol MSALNativeAuthJITControlling {
3737
func requestJITChallenge(
3838
continuationToken: String,
3939
authMethod: MSALAuthMethod,
40-
verificationContact: String?,
40+
verificationContact: String,
4141
context: MSALNativeAuthRequestContext
4242
) async -> JITRequestChallengeControllerResponse
4343

0 commit comments

Comments
 (0)