Skip to content

Commit 39fc405

Browse files
committed
2 parents 611d465 + 8ed4d9d commit 39fc405

File tree

58 files changed

+2683
-410
lines changed

Some content is hidden

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

58 files changed

+2683
-410
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## TBD
2+
* Support sendable result #2518
3+
4+
## [1.7.0]
5+
* Add support for claims request in native authentication signIn (#2496)
6+
* Move native auth public methods to parameter class (#2492)
7+
18
## [1.6.3]
29
* Merge 1.6.1-hotfix
310

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 = "1.6.3"
3+
s.version = "1.7.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/MSAL.xcodeproj/project.pbxproj

Lines changed: 50 additions & 6 deletions
Large diffs are not rendered by default.

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>1.6.3</string>
18+
<string>1.7.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>1.6.3</string>
18+
<string>1.7.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSHumanReadableCopyright</key>

MSAL/src/MSALErrorConverter.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@ + (void)initialize
113113
@(MSIDErrorDeviceNotPSSORegistered) : @(MSALErrorDeviceNotPSSORegistered),
114114
@(MSIDErrorPSSOKeyIdMismatch) : @(MSALErrorPSSOKeyIdMismatch),
115115
@(MSIDErrorJITErrorHandlingConfigNotFound) : @(MSALErrorJITErrorHandlingConfigNotFound),
116+
@(MSIDErrorPSSOBiometricPolicyMismatch) : @(MSALErrorPSSOBiometricPolicyMismatch),
117+
@(MSIDErrorPSSOInvalidPasskeyExtension) : @(MSALErrorPSSOInvalidPasskeyExtension),
118+
@(MSIDErrorPSSOSaveLoginConfigFailure) :@(MSALErrorPSSOSaveLoginConfigFailure),
119+
@(MSIDErrorPSSOPasskeyLAError) :@(MSALErrorPSSOPasskeyLAError),
120+
@(MSIDErrorPSSOBiometricsNotAvailable): @(MSALErrorPSSOBiometricsNotAvailable),
121+
@(MSIDErrorPSSOBiometricsNotEnrolled): @(MSALErrorPSSOBiometricsNotEnrolled),
122+
116123

117124
// Oauth2 errors
118125
@(MSIDErrorServerOauth) : @(MSALInternalErrorAuthorizationFailed),

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 1
29-
#define MSAL_VER_LOW 6
30-
#define MSAL_VER_PATCH 3
29+
#define MSAL_VER_LOW 7
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/MSALNativeAuthTokenController.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class MSALNativeAuthTokenController: MSALNativeAuthBaseController {
8181
oobCode: String? = nil,
8282
grantType: MSALNativeAuthGrantType,
8383
includeChallengeType: Bool = true,
84+
claimsRequestJson: String? = nil,
8485
context: MSALNativeAuthRequestContext) -> MSIDHttpRequest? {
8586
do {
8687
let params = MSALNativeAuthTokenRequestParameters(
@@ -92,7 +93,8 @@ class MSALNativeAuthTokenController: MSALNativeAuthBaseController {
9293
password: password,
9394
oobCode: oobCode,
9495
includeChallengeType: includeChallengeType,
95-
refreshToken: nil)
96+
refreshToken: nil,
97+
claimsRequestJson: claimsRequestJson)
9698
return try requestProvider.signInWithPassword(parameters: params, context: context)
9799
} catch {
98100
MSALLogger.log(level: .error, context: context, format: "Error creating SignIn Token Request: \(error)")
@@ -118,7 +120,8 @@ class MSALNativeAuthTokenController: MSALNativeAuthBaseController {
118120
password: nil,
119121
oobCode: nil,
120122
includeChallengeType: false,
121-
refreshToken: refreshToken)
123+
refreshToken: refreshToken,
124+
claimsRequestJson: nil)
122125
return try requestProvider.refreshToken(parameters: params, context: context)
123126
} catch {
124127
MSALLogger.log(level: .error, context: context, format: "Error creating Refresh Token Request: \(error)")

MSAL/src/native_auth/controllers/sign_in/MSALNativeAuthSignInParameters.swift renamed to MSAL/src/native_auth/controllers/sign_in/MSALNativeAuthInternalSignInParameters.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,23 @@
2424

2525
@_implementationOnly import MSAL_Private
2626

27-
class MSALNativeAuthSignInParameters {
27+
class MSALNativeAuthInternalSignInParameters {
2828
let username: String
2929
let password: String?
3030
let context: MSALNativeAuthRequestContext
3131
let scopes: [String]?
32+
let claimsRequestJson: String?
3233

3334
init(
3435
username: String,
3536
password: String?,
3637
context: MSALNativeAuthRequestContext,
37-
scopes: [String]?) {
38+
scopes: [String]?,
39+
claimsRequestJson: String?) {
3840
self.username = username
3941
self.password = password
4042
self.context = context
4143
self.scopes = scopes
44+
self.claimsRequestJson = claimsRequestJson
4245
}
4346
}

0 commit comments

Comments
 (0)