Skip to content

Commit eedbff4

Browse files
committed
updating cc
2 parents ca5d21b + 32ed88f commit eedbff4

File tree

56 files changed

+783
-634
lines changed

Some content is hidden

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

56 files changed

+783
-634
lines changed

CHANGELOG.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
## [TBD]:
2-
* Update common core submodule with changes related to upgrade registration.
3-
* Update common core submodule with device register action with token protection hint.
2+
* Increased macOS minimum version to 10.15 #2220
43

5-
## [1.4.1]:
6-
* Update Native Auth logging levels for improved clarity and consistency. #2184
4+
## [1.4.2]
5+
* Fix invalid cert auth request handling (hotfix). (#2278)
6+
7+
## [1.4.1]
8+
* Update Native Auth logging levels for improved clarity and consistency. (#2184)
9+
* Update common core submodule with changes related to upgrade registration. (#2180)
10+
* Add a new flag MSALThrottlingCacheHitKey for error returned from client's throttling. (#2257)
11+
* Update common core submodule with device register action with token protection hint. (#2244)
12+
* Native Auth logs are appropriately masked to ensure sensitive information is protected. (#2253)
713

814
## [1.4.0]:
915
* Add platform sequence param. #2192

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.4.0"
3+
s.version = "1.4.2"
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 272 files

MSAL/MSAL.xcodeproj/project.pbxproj

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,7 @@
10761076
E243F6AA29D42FE900DAC60F /* MSALNativeAuthSignUpContinueRequestProviderParams.swift in Sources */ = {isa = PBXBuildFile; fileRef = E243F6A929D42FE900DAC60F /* MSALNativeAuthSignUpContinueRequestProviderParams.swift */; };
10771077
E243F6AF29D446FC00DAC60F /* MSALNativeAuthSignUpStartIntegrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E243F6AD29D4427E00DAC60F /* MSALNativeAuthSignUpStartIntegrationTests.swift */; };
10781078
E248917A2A1CFA6B001ECBE2 /* MSALNativeAuthConfigStubs.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2F5BE9429894FCA00C67EC7 /* MSALNativeAuthConfigStubs.swift */; };
1079+
E24CE9CC2C57F1160069E2E4 /* AttributesStub.swift in Sources */ = {isa = PBXBuildFile; fileRef = E24CE9C32C57F0850069E2E4 /* AttributesStub.swift */; };
10791080
E25BC07A2995423100588549 /* MSALNativeAuthNetworkMocks.swift in Sources */ = {isa = PBXBuildFile; fileRef = E25BC0792995423100588549 /* MSALNativeAuthNetworkMocks.swift */; };
10801081
E25BC0832995429D00588549 /* MSALNativeAuthCacheMocks.swift in Sources */ = {isa = PBXBuildFile; fileRef = E25BC0822995429D00588549 /* MSALNativeAuthCacheMocks.swift */; };
10811082
E25BC0852995430B00588549 /* MSALNativeAuthFactoriesMocks.swift in Sources */ = {isa = PBXBuildFile; fileRef = E25BC0842995430B00588549 /* MSALNativeAuthFactoriesMocks.swift */; };
@@ -2109,6 +2110,7 @@
21092110
E243F6A529D206BC00DAC60F /* MSALNativeAuthSignUpContinueResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MSALNativeAuthSignUpContinueResponse.swift; sourceTree = "<group>"; };
21102111
E243F6A929D42FE900DAC60F /* MSALNativeAuthSignUpContinueRequestProviderParams.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MSALNativeAuthSignUpContinueRequestProviderParams.swift; sourceTree = "<group>"; };
21112112
E243F6AD29D4427E00DAC60F /* MSALNativeAuthSignUpStartIntegrationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MSALNativeAuthSignUpStartIntegrationTests.swift; sourceTree = "<group>"; };
2113+
E24CE9C32C57F0850069E2E4 /* AttributesStub.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AttributesStub.swift; sourceTree = "<group>"; };
21122114
E25BC0792995423100588549 /* MSALNativeAuthNetworkMocks.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MSALNativeAuthNetworkMocks.swift; sourceTree = "<group>"; };
21132115
E25BC0822995429D00588549 /* MSALNativeAuthCacheMocks.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MSALNativeAuthCacheMocks.swift; sourceTree = "<group>"; };
21142116
E25BC0842995430B00588549 /* MSALNativeAuthFactoriesMocks.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MSALNativeAuthFactoriesMocks.swift; sourceTree = "<group>"; };
@@ -2810,6 +2812,7 @@
28102812
9B235DA22A3D15E400657331 /* sign_in */,
28112813
DEFB46E12A52B9B800DBC006 /* reset_password */,
28122814
DEFB46EB2A52BA1300DBC006 /* sign_out */,
2815+
E24CE9D82C592BA70069E2E4 /* mock */,
28132816
9B235D9E2A3CFB4300657331 /* MSALNativeAuthEndToEndBaseTestCase.swift */,
28142817
2809E8342C3C37B7009F14D7 /* MSALNativeAuthEndToEndPasswordTestCase.swift */,
28152818
280095EA2C32CAFC00F1653E /* ClientIdType.swift */,
@@ -3966,6 +3969,14 @@
39663969
path = sign_up;
39673970
sourceTree = "<group>";
39683971
};
3972+
E24CE9D82C592BA70069E2E4 /* mock */ = {
3973+
isa = PBXGroup;
3974+
children = (
3975+
E24CE9C32C57F0850069E2E4 /* AttributesStub.swift */,
3976+
);
3977+
path = mock;
3978+
sourceTree = "<group>";
3979+
};
39693980
E25BC0902995559700588549 /* utils */ = {
39703981
isa = PBXGroup;
39713982
children = (
@@ -5565,6 +5576,7 @@
55655576
files = (
55665577
281A0E182C21E1FD00CB30CB /* SignInDelegateSpies.swift in Sources */,
55675578
28A277D92C22ED5E00D95E00 /* MSALNativeAuthEmailCodeRetriever.swift in Sources */,
5579+
E24CE9CC2C57F1160069E2E4 /* AttributesStub.swift in Sources */,
55685580
281A0E1B2C21E20600CB30CB /* MSALNativeAuthEndToEndBaseTestCase.swift in Sources */,
55695581
281A0E192C21E20000CB30CB /* MSALNativeAuthResetPasswordEndToEndTests.swift in Sources */,
55705582
281A0E0C2C21E1F000CB30CB /* MSALNativeAuthSignUpUsernameEndToEndTests.swift in Sources */,
@@ -6415,7 +6427,7 @@
64156427
COPY_PHASE_STRIP = NO;
64166428
GCC_DYNAMIC_NO_PIC = NO;
64176429
GCC_OPTIMIZATION_LEVEL = 0;
6418-
MACOSX_DEPLOYMENT_TARGET = 10.13;
6430+
MACOSX_DEPLOYMENT_TARGET = 10.15;
64196431
PRODUCT_NAME = "MSAL (macOS Static Library)";
64206432
};
64216433
name = Debug;
@@ -6426,7 +6438,7 @@
64266438
buildSettings = {
64276439
COPY_PHASE_STRIP = YES;
64286440
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
6429-
MACOSX_DEPLOYMENT_TARGET = 10.13;
6441+
MACOSX_DEPLOYMENT_TARGET = 10.15;
64306442
PRODUCT_NAME = "MSAL (macOS Static Library)";
64316443
};
64326444
name = Release;
@@ -6487,7 +6499,7 @@
64876499
"$(inherited)",
64886500
"@executable_path/../Frameworks",
64896501
);
6490-
MACOSX_DEPLOYMENT_TARGET = 10.13;
6502+
MACOSX_DEPLOYMENT_TARGET = 10.15;
64916503
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
64926504
MTL_FAST_MATH = YES;
64936505
ONLY_ACTIVE_ARCH = YES;
@@ -6557,7 +6569,7 @@
65576569
"$(inherited)",
65586570
"@executable_path/../Frameworks",
65596571
);
6560-
MACOSX_DEPLOYMENT_TARGET = 10.13;
6572+
MACOSX_DEPLOYMENT_TARGET = 10.15;
65616573
MTL_ENABLE_DEBUG_INFO = NO;
65626574
MTL_FAST_MATH = YES;
65636575
PRODUCT_BUNDLE_IDENTIFIER = com.microsoft.MSALMacTestApp;
@@ -6969,7 +6981,7 @@
69696981
"$(inherited)",
69706982
"@executable_path/../Frameworks",
69716983
);
6972-
MACOSX_DEPLOYMENT_TARGET = 10.13;
6984+
MACOSX_DEPLOYMENT_TARGET = 10.15;
69736985
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
69746986
MTL_FAST_MATH = YES;
69756987
ONLY_ACTIVE_ARCH = YES;
@@ -7033,7 +7045,7 @@
70337045
"$(inherited)",
70347046
"@executable_path/../Frameworks",
70357047
);
7036-
MACOSX_DEPLOYMENT_TARGET = 10.13;
7048+
MACOSX_DEPLOYMENT_TARGET = 10.15;
70377049
MTL_ENABLE_DEBUG_INFO = NO;
70387050
MTL_FAST_MATH = YES;
70397051
PRODUCT_BUNDLE_IDENTIFIER = "com.microsoft.unit-test-host";
@@ -7448,7 +7460,7 @@
74487460
"@executable_path/../Frameworks",
74497461
"@loader_path/Frameworks",
74507462
);
7451-
MACOSX_DEPLOYMENT_TARGET = 10.13;
7463+
MACOSX_DEPLOYMENT_TARGET = 10.15;
74527464
MARKETING_VERSION = 1.1.24;
74537465
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
74547466
SWIFT_VERSION = 5.0;
@@ -7469,7 +7481,7 @@
74697481
"@executable_path/../Frameworks",
74707482
"@loader_path/Frameworks",
74717483
);
7472-
MACOSX_DEPLOYMENT_TARGET = 10.13;
7484+
MACOSX_DEPLOYMENT_TARGET = 10.15;
74737485
MARKETING_VERSION = 1.1.24;
74747486
SWIFT_VERSION = 5.0;
74757487
};
@@ -7544,7 +7556,7 @@
75447556
CODE_SIGN_STYLE = Manual;
75457557
DEVELOPMENT_TEAM = "";
75467558
GCC_OPTIMIZATION_LEVEL = 0;
7547-
MACOSX_DEPLOYMENT_TARGET = 10.13;
7559+
MACOSX_DEPLOYMENT_TARGET = 10.15;
75487560
PROVISIONING_PROFILE_SPECIFIER = "";
75497561
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/unit-test-host-mac.app/Contents/MacOS/unit-test-host-mac";
75507562
USER_HEADER_SEARCH_PATHS = (
@@ -7562,7 +7574,7 @@
75627574
buildSettings = {
75637575
CODE_SIGN_STYLE = Manual;
75647576
DEVELOPMENT_TEAM = "";
7565-
MACOSX_DEPLOYMENT_TARGET = 10.13;
7577+
MACOSX_DEPLOYMENT_TARGET = 10.15;
75667578
PROVISIONING_PROFILE_SPECIFIER = "";
75677579
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/unit-test-host-mac.app/Contents/MacOS/unit-test-host-mac";
75687580
USER_HEADER_SEARCH_PATHS = (

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

MSAL/src/MSALDeviceInformation.m

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,7 @@ - (instancetype)init
5454
_deviceMode = MSALDeviceModeDefault;
5555
_extraDeviceInformation = [NSMutableDictionary new];
5656

57-
if (@available(macOS 10.15, *))
58-
{
59-
_hasAADSSOExtension = [[ASAuthorizationSingleSignOnProvider msidSharedProvider] canPerformAuthorization];
60-
}
61-
else
62-
{
63-
_hasAADSSOExtension = NO;
64-
}
57+
_hasAADSSOExtension = [[ASAuthorizationSingleSignOnProvider msidSharedProvider] canPerformAuthorization];
6558
}
6659

6760
return self;
@@ -75,14 +68,7 @@ - (instancetype)initWithMSIDDeviceInfo:(MSIDDeviceInfo *)deviceInfo
7568
{
7669
_deviceMode = [self msalDeviceModeFromMSIDMode:deviceInfo.deviceMode];
7770

78-
if (@available(macOS 10.15, *))
79-
{
80-
_hasAADSSOExtension = [[ASAuthorizationSingleSignOnProvider msidSharedProvider] canPerformAuthorization];
81-
}
82-
else
83-
{
84-
_hasAADSSOExtension = NO;
85-
}
71+
_hasAADSSOExtension = [[ASAuthorizationSingleSignOnProvider msidSharedProvider] canPerformAuthorization];
8672

8773
#if TARGET_OS_OSX
8874
_platformSSOStatus = [self msalPlatformSSOStatusFromMSIDPlatformSSOStatus:deviceInfo.platformSSOStatus];

MSAL/src/MSALError.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@
4141
NSString *MSALDisplayableUserIdKey = @"MSALDisplayableUserIdKey";
4242
NSString *MSALBrokerVersionKey = @"MSALBrokerVersionKey";
4343
NSString *MSALHomeAccountIdKey = @"MSALHomeAccountIdKey";
44+
NSString *MSALThrottlingCacheHitKey = @"MSALThrottlingCacheHitKey";

MSAL/src/MSALErrorConverter.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ + (void)initialize
145145
MSIDGrantedScopesKey: MSALGrantedScopesKey,
146146
MSIDUserDisplayableIdkey: MSALDisplayableUserIdKey,
147147
MSIDBrokerVersionKey: MSALBrokerVersionKey,
148-
MSIDHomeAccountIdkey: MSALHomeAccountIdKey
148+
MSIDHomeAccountIdkey: MSALHomeAccountIdKey,
149+
MSIDThrottlingCacheHitKey: MSALThrottlingCacheHitKey
149150
};
150151

151152
s_recoverableErrorCode = [[NSSet alloc] initWithObjects:@(MSALErrorWorkplaceJoinRequired), @(MSALErrorInteractionRequired), @(MSALErrorServerDeclinedScopes), @(MSALErrorServerProtectionPoliciesRequired), @(MSALErrorUserCanceled), nil];

MSAL/src/MSALPublicClientApplication.m

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -320,30 +320,19 @@ - (BOOL)setupTokenCacheWithConfiguration:(MSALPublicClientApplicationConfig *)co
320320
id<MSIDExtendedTokenCacheDataSource> dataSource = nil;
321321
id<MSIDExtendedTokenCacheDataSource> secondaryDataSource = nil;
322322
NSError *dataSourceError = nil;
323-
324-
if (@available(macOS 10.15, *)) {
325-
dataSource = [[MSIDKeychainTokenCache alloc] initWithGroup:config.cacheConfig.keychainSharingGroup error:&dataSourceError];
326-
327-
self.msidCacheConfig = [[MSIDCacheConfig alloc] initWithKeychainGroup:config.cacheConfig.keychainSharingGroup];
328-
329-
NSError *secondaryDataSourceError = nil;
330-
secondaryDataSource = [[MSIDMacKeychainTokenCache alloc] initWithGroup:config.cacheConfig.keychainSharingGroup
331-
trustedApplications:config.cacheConfig.trustedApplications
332-
error:&secondaryDataSourceError];
333-
334-
if (secondaryDataSourceError)
335-
{
336-
MSID_LOG_WITH_CTX_PII(MSIDLogLevelWarning, nil, @"Failed to create secondary data source with error %@", MSID_PII_LOG_MASKABLE(secondaryDataSourceError));
337-
}
338-
}
339-
else
323+
324+
dataSource = [[MSIDKeychainTokenCache alloc] initWithGroup:config.cacheConfig.keychainSharingGroup error:&dataSourceError];
325+
326+
self.msidCacheConfig = [[MSIDCacheConfig alloc] initWithKeychainGroup:config.cacheConfig.keychainSharingGroup];
327+
328+
NSError *secondaryDataSourceError = nil;
329+
secondaryDataSource = [[MSIDMacKeychainTokenCache alloc] initWithGroup:config.cacheConfig.keychainSharingGroup
330+
trustedApplications:config.cacheConfig.trustedApplications
331+
error:&secondaryDataSourceError];
332+
333+
if (secondaryDataSourceError)
340334
{
341-
MSIDMacKeychainTokenCache *macDataSource = [[MSIDMacKeychainTokenCache alloc] initWithGroup:config.cacheConfig.keychainSharingGroup
342-
trustedApplications:config.cacheConfig.trustedApplications
343-
error:&dataSourceError];
344-
345-
dataSource = macDataSource;
346-
self.msidCacheConfig = [[MSIDCacheConfig alloc] initWithKeychainGroup:config.cacheConfig.keychainSharingGroup accessRef:(__bridge SecAccessRef _Nullable)(macDataSource.accessControlForNonSharedItems)];
335+
MSID_LOG_WITH_CTX_PII(MSIDLogLevelWarning, nil, @"Failed to create secondary data source with error %@", MSID_PII_LOG_MASKABLE(secondaryDataSourceError));
347336
}
348337

349338
if (!dataSource)

0 commit comments

Comments
 (0)