Skip to content

Commit 08dde01

Browse files
authored
Merge pull request #2338 from AzureAD/release/1.5.1
Merge Release 1.5.1 to Main
2 parents b873323 + 074f54c commit 08dde01

38 files changed

+1337
-44
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [1.5.1]:
2+
* Parse and add STS error codes in token error result (#2319)
3+
* VisionOS support added (#2139)
4+
15
## [1.5.0]
26
* Increased macOS minimum version to 10.15 (#2220)
37
* Added Native Auth feature for MacOS to interact with the Microsoft Entra ID services (#2220)

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ CHANGELOG.md @AzureAD/AppleIdentityTeam @AzureAD/MSAL-ObjC-CIAM
2222
/MSAL/MSAL.xcodeproj/xcshareddata/xcschemes/MSAL\ iOS\ Native\ Auth\ E2E\ Tests.xcscheme @AzureAD/MSAL-ObjC-CIAM
2323
/MSAL/MSAL.xcodeproj/xcshareddata/xcschemes/MSAL\ Mac\ Native\ Auth\ E2E\ Tests.xcscheme @AzureAD/MSAL-ObjC-CIAM
2424
/Package.swift @AzureAD/MSAL-ObjC-CIAM
25+
/spm-integration-test.sh @AzureAD/MSAL-ObjC-CIAM
2526
# For more details about inheritance patterns, or to assign different
2627
# owners for individual file extensions, see:
2728
# https://help.github.com/articles/about-codeowners/

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.5.0"
3+
s.version = "1.5.1"
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 41 files

MSAL/MSAL.xcodeproj/project.pbxproj

Lines changed: 310 additions & 14 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.5.0</string>
18+
<string>1.5.1</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.5.0</string>
18+
<string>1.5.1</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSHumanReadableCopyright</key>

MSAL/src/MSALError.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
NSString *MSALOAuthErrorKey = @"MSALOAuthErrorKey";
3232
NSString *MSALOAuthSubErrorKey = @"MSALOAuthSubErrorKey";
3333
NSString *MSALErrorDescriptionKey = @"MSALErrorDescriptionKey";
34+
NSString *MSALSTSErrorCodesKey = @"MSALSTSErrorCodesKey";
3435
NSString *MSALInternalErrorCodeKey = @"MSALInternalErrorCodeKey";
3536
NSString *MSALHTTPHeadersKey = @"MSALHTTPHeadersKey";
3637
NSString *MSALHTTPResponseCodeKey = @"MSALHTTPResponseCodeKey";

MSAL/src/MSALErrorConverter.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ + (void)initialize
139139
MSIDHTTPResponseCodeKey : MSALHTTPResponseCodeKey,
140140
MSIDCorrelationIdKey : MSALCorrelationIDKey,
141141
MSIDErrorDescriptionKey : MSALErrorDescriptionKey,
142+
MSIDSTSErrorCodesKey : MSALSTSErrorCodesKey,
142143
MSIDOAuthErrorKey: MSALOAuthErrorKey,
143144
MSIDOAuthSubErrorKey: MSALOAuthSubErrorKey,
144145
MSIDDeclinedScopesKey: MSALDeclinedScopesKey,
@@ -249,8 +250,12 @@ + (NSError *)errorWithDomain:(NSString *)domain
249250
if (errorDescription) msalUserInfo[MSALErrorDescriptionKey] = errorDescription;
250251
if (oauthError) msalUserInfo[MSALOAuthErrorKey] = oauthError;
251252
if (subError) msalUserInfo[MSALOAuthSubErrorKey] = subError;
252-
253-
if (underlyingError) msalUserInfo[NSUnderlyingErrorKey] = [MSALErrorConverter msalErrorFromMsidError:underlyingError];
253+
254+
if (underlyingError) {
255+
msalUserInfo[NSUnderlyingErrorKey] = [MSALErrorConverter msalErrorFromMsidError:underlyingError];
256+
NSArray<NSNumber *>* stsErrorCodes = underlyingError.userInfo[MSIDSTSErrorCodesKey];
257+
if (stsErrorCodes) msalUserInfo[MSALSTSErrorCodesKey] = stsErrorCodes;
258+
}
254259

255260
msalUserInfo[MSALInternalErrorCodeKey] = internalCode;
256261

MSAL/src/MSALPublicClientApplication.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ + (void)load
141141
MSIDNotifications.webAuthDidFinishLoadNotificationName = MSALWebAuthDidFinishLoadNotification;
142142
MSIDNotifications.webAuthWillSwitchToBrokerAppNotificationName = MSALWebAuthWillSwitchToBrokerApp;
143143
MSIDNotifications.webAuthDidReceiveResponseFromBrokerNotificationName = MSALWebAuthDidReceiveResponseFromBroker;
144-
#if TARGET_OS_IPHONE && !AD_BROKER
144+
#if TARGET_OS_IPHONE && !AD_BROKER && !MSID_EXCLUDE_SYSTEMWV
145145
[MSIDCertAuthHandler setUseAuthSession:YES];
146146
#endif
147147
}
@@ -621,6 +621,7 @@ + (BOOL)handleMSALResponse:(NSURL *)response
621621
+ (BOOL)handleMSALResponse:(NSURL *)response
622622
sourceApplication:(NSString *)sourceApplication
623623
{
624+
#if !MSID_EXCLUDE_SYSTEMWV
624625
if ([MSIDWebviewAuthorization handleURLResponseForSystemWebviewController:response])
625626
{
626627
return YES;
@@ -630,6 +631,7 @@ + (BOOL)handleMSALResponse:(NSURL *)response
630631
{
631632
return YES;
632633
}
634+
#endif
633635

634636
// Only AAD is supported in broker at this time. If we need to support something else, we need to change this to dynamically read authority from response and create factory
635637
MSIDDefaultBrokerResponseHandler *brokerResponseHandler = [[MSIDDefaultBrokerResponseHandler alloc] initWithOauthFactory:[MSIDAADV2Oauth2Factory new]

0 commit comments

Comments
 (0)