Skip to content

Commit 8f22e7a

Browse files
authored
Merge pull request #902 from AzureAD/release/1.1.2
Release MSAL 1.1.2
2 parents 081e94e + d863121 commit 8f22e7a

Some content is hidden

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

47 files changed

+1007
-516
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## [1.1.2] - 2020-04-17
2+
3+
### Added
4+
* Support SSO in Safari in AAD SSO extension
5+
* Additional automation tests for AAD national cloud scenarios
6+
* Convert access denied error to cancelled on MSAL side (#894)
7+
* Resolved conflict between initWithParentController API on App Store upload (#893)
8+
19
## [1.1.1] - 2020-03-27
210

311
### Fixed

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.1.1"
3+
s.version = "1.1.2"
44
s.summary = "Microsoft Authentication Library (MSAL) Preview for iOS"
55

66
s.description = <<-DESC

MSAL/IdentityCore

Submodule IdentityCore updated 89 files

MSAL/MSAL.xcodeproj/project.pbxproj

Lines changed: 53 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@
271271
B20E245E21FEB3BB0037CA5E /* AuthenticationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B20E245C21FEB3650037CA5E /* AuthenticationServices.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
272272
B20E246021FEB3E20037CA5E /* MSAL.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = D65A6F431E3FD30A00C69FBA /* MSAL.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
273273
B20E246221FEB8160037CA5E /* MSALNonUnifiedADALCoexistenceCacheTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B29E2AC821238F2200B170ED /* MSALNonUnifiedADALCoexistenceCacheTests.m */; };
274-
B20E246421FEB8DB0037CA5E /* MSALUnifiedADALCacheCoexistenceTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B2734C1921253ABB00DAB1CD /* MSALUnifiedADALCacheCoexistenceTests.m */; };
275274
B217861B23A580B200839CE8 /* AuthenticationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B2EE86E223751CAE00D0BC96 /* AuthenticationServices.framework */; };
276275
B21786A523A72DFC00839CE8 /* MSALPublicClientApplication+SingleAccount.h in Headers */ = {isa = PBXBuildFile; fileRef = B21786A323A72DFC00839CE8 /* MSALPublicClientApplication+SingleAccount.h */; settings = {ATTRIBUTES = (Public, ); }; };
277276
B21786A623A72DFC00839CE8 /* MSALPublicClientApplication+SingleAccount.h in Headers */ = {isa = PBXBuildFile; fileRef = B21786A323A72DFC00839CE8 /* MSALPublicClientApplication+SingleAccount.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -513,6 +512,10 @@
513512
B27CCDF5229F9F4700CAD565 /* MSALAccountEnumerationParameters.m in Sources */ = {isa = PBXBuildFile; fileRef = B27CCDF1229F9F4700CAD565 /* MSALAccountEnumerationParameters.m */; };
514513
B281B33B226BC225009619AB /* MSALPublicClientApplicationConfigTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B281B33A226BC225009619AB /* MSALPublicClientApplicationConfigTests.m */; };
515514
B281B33C226BC225009619AB /* MSALPublicClientApplicationConfigTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B281B33A226BC225009619AB /* MSALPublicClientApplicationConfigTests.m */; };
515+
B282255C23EF811F0007DFE4 /* MSALB2CInteractiveTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B2F45744211E41C100818910 /* MSALB2CInteractiveTests.m */; };
516+
B282255F23EF97C50007DFE4 /* MSALNationalCloudUITest.m in Sources */ = {isa = PBXBuildFile; fileRef = B282255E23EF97C50007DFE4 /* MSALNationalCloudUITest.m */; };
517+
B282256223EF9BFF0007DFE4 /* MSALChinaCloudUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = B282256023EF9BFF0007DFE4 /* MSALChinaCloudUITests.m */; };
518+
B282256323EF9BFF0007DFE4 /* MSALUSGovUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = B282256123EF9BFF0007DFE4 /* MSALUSGovUITests.m */; };
516519
B286B9E42389E751007833AD /* AuthenticationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B2EE86E223751CAE00D0BC96 /* AuthenticationServices.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
517520
B286B9FD238A07A5007833AD /* MSALAcquireTokenTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D6B58A531EB2C4A8000B3A5F /* MSALAcquireTokenTests.m */; };
518521
B286BA00238A08F6007833AD /* MSALB2CPolicyTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B25F1BB21EC257F900474D1B /* MSALB2CPolicyTests.m */; };
@@ -575,7 +578,6 @@
575578
B2BB73992112C51E000EA4C5 /* MSALUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B2BB73982112C51E000EA4C5 /* MSALUITests.swift */; };
576579
B2BB739C2112C7F9000EA4C5 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B2BB739B2112C7F9000EA4C5 /* Security.framework */; };
577580
B2BB739D2112C82E000EA4C5 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B2BB739B2112C7F9000EA4C5 /* Security.framework */; };
578-
B2BDEEE821FEA205001EBB8B /* MSALMultiAppCacheCoexistenceTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B2734C1B21253AD300DAB1CD /* MSALMultiAppCacheCoexistenceTests.m */; };
579581
B2C0E79D23AC7996006C9CAD /* MSALParameters.h in Headers */ = {isa = PBXBuildFile; fileRef = B2C0E79B23AC7996006C9CAD /* MSALParameters.h */; settings = {ATTRIBUTES = (Public, ); }; };
580582
B2C0E79E23AC7996006C9CAD /* MSALParameters.h in Headers */ = {isa = PBXBuildFile; fileRef = B2C0E79B23AC7996006C9CAD /* MSALParameters.h */; settings = {ATTRIBUTES = (Public, ); }; };
581583
B2C0E79F23AC7996006C9CAD /* MSALParameters.m in Sources */ = {isa = PBXBuildFile; fileRef = B2C0E79C23AC7996006C9CAD /* MSALParameters.m */; };
@@ -592,7 +594,6 @@
592594
B2D0A38E21C71B8C0071E0DA /* MSALGuestUserTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B21F9DF02120F5CE00B1B40C /* MSALGuestUserTests.m */; };
593595
B2D0A38F21C71D900071E0DA /* MSALCacheRemovalTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B2C232AA2122A6A5008092C1 /* MSALCacheRemovalTests.m */; };
594596
B2D0A39221C72C740071E0DA /* MSALMSABasicInteractiveTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B26D3107211680B2002B493F /* MSALMSABasicInteractiveTests.m */; };
595-
B2D0A39921C73BD80071E0DA /* MSALB2CInteractiveTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B2F45744211E41C100818910 /* MSALB2CInteractiveTests.m */; };
596597
B2D47881230E3DBE005AE186 /* MSALADFSOauth2Provider.h in Headers */ = {isa = PBXBuildFile; fileRef = B26756CE22921C6D000F01D7 /* MSALADFSOauth2Provider.h */; };
597598
B2D47882230E3DC1005AE186 /* MSALADFSOauth2Provider.m in Sources */ = {isa = PBXBuildFile; fileRef = B26756CF22921C6D000F01D7 /* MSALADFSOauth2Provider.m */; };
598599
B2D47883230E3DC1005AE186 /* MSALADFSOauth2Provider.m in Sources */ = {isa = PBXBuildFile; fileRef = B26756CF22921C6D000F01D7 /* MSALADFSOauth2Provider.m */; };
@@ -1226,6 +1227,10 @@
12261227
B27CCDF0229F9F4700CAD565 /* MSALAccountEnumerationParameters.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MSALAccountEnumerationParameters.h; sourceTree = "<group>"; };
12271228
B27CCDF1229F9F4700CAD565 /* MSALAccountEnumerationParameters.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MSALAccountEnumerationParameters.m; sourceTree = "<group>"; };
12281229
B281B33A226BC225009619AB /* MSALPublicClientApplicationConfigTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MSALPublicClientApplicationConfigTests.m; sourceTree = "<group>"; };
1230+
B282255D23EF97C50007DFE4 /* MSALNationalCloudUITest.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MSALNationalCloudUITest.h; sourceTree = "<group>"; };
1231+
B282255E23EF97C50007DFE4 /* MSALNationalCloudUITest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MSALNationalCloudUITest.m; sourceTree = "<group>"; };
1232+
B282256023EF9BFF0007DFE4 /* MSALChinaCloudUITests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MSALChinaCloudUITests.m; sourceTree = "<group>"; };
1233+
B282256123EF9BFF0007DFE4 /* MSALUSGovUITests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MSALUSGovUITests.m; sourceTree = "<group>"; };
12291234
B28BBD312211DC7D00F51723 /* MSALPublicClientStatusNotifications.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MSALPublicClientStatusNotifications.h; sourceTree = "<group>"; };
12301235
B28BBD322211DC7D00F51723 /* MSALPublicClientStatusNotifications.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MSALPublicClientStatusNotifications.m; sourceTree = "<group>"; };
12311236
B28BDA8C217E9EAB003E5670 /* MSALOauth2ProviderFactory.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MSALOauth2ProviderFactory.h; sourceTree = "<group>"; };
@@ -1887,7 +1892,11 @@
18871892
B21F9DEC2120EB3E00B1B40C /* MSALPingUITests.m */,
18881893
B21F9DF02120F5CE00B1B40C /* MSALGuestUserTests.m */,
18891894
B2C2329F21224C21008092C1 /* MSALBlackforestUITests.m */,
1895+
B282256023EF9BFF0007DFE4 /* MSALChinaCloudUITests.m */,
1896+
B282256123EF9BFF0007DFE4 /* MSALUSGovUITests.m */,
18901897
B2C232AA2122A6A5008092C1 /* MSALCacheRemovalTests.m */,
1898+
B282255D23EF97C50007DFE4 /* MSALNationalCloudUITest.h */,
1899+
B282255E23EF97C50007DFE4 /* MSALNationalCloudUITest.m */,
18911900
);
18921901
path = interactive;
18931902
sourceTree = "<group>";
@@ -2823,6 +2832,7 @@
28232832
B29E2ACC21238F5200B170ED /* Resources */,
28242833
B29E2AD821238F6C00B170ED /* ShellScript */,
28252834
B20E245F21FEB3D80037CA5E /* CopyFiles */,
2835+
B286864F24037DE7004E83FC /* ShellScript */,
28262836
);
28272837
buildRules = (
28282838
);
@@ -2844,6 +2854,7 @@
28442854
B2BB736E2112C32C000EA4C5 /* Resources */,
28452855
B2BB739A2112C588000EA4C5 /* ShellScript */,
28462856
B20E245621FEB30F0037CA5E /* CopyFiles */,
2857+
B286864824037DCB004E83FC /* ShellScript */,
28472858
);
28482859
buildRules = (
28492860
);
@@ -3281,6 +3292,40 @@
32813292
/* End PBXResourcesBuildPhase section */
32823293

32833294
/* Begin PBXShellScriptBuildPhase section */
3295+
B286864824037DCB004E83FC /* ShellScript */ = {
3296+
isa = PBXShellScriptBuildPhase;
3297+
buildActionMask = 2147483647;
3298+
files = (
3299+
);
3300+
inputFileListPaths = (
3301+
);
3302+
inputPaths = (
3303+
);
3304+
outputFileListPaths = (
3305+
);
3306+
outputPaths = (
3307+
);
3308+
runOnlyForDeploymentPostprocessing = 0;
3309+
shellPath = /bin/sh;
3310+
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nxattr -cr ~/Library/Developer/Xcode/DerivedData || echo Clear\n";
3311+
};
3312+
B286864F24037DE7004E83FC /* ShellScript */ = {
3313+
isa = PBXShellScriptBuildPhase;
3314+
buildActionMask = 2147483647;
3315+
files = (
3316+
);
3317+
inputFileListPaths = (
3318+
);
3319+
inputPaths = (
3320+
);
3321+
outputFileListPaths = (
3322+
);
3323+
outputPaths = (
3324+
);
3325+
runOnlyForDeploymentPostprocessing = 0;
3326+
shellPath = /bin/sh;
3327+
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nxattr -cr ~/Library/Developer/Xcode/DerivedData || echo Clear\n";
3328+
};
32843329
B29E2AD821238F6C00B170ED /* ShellScript */ = {
32853330
isa = PBXShellScriptBuildPhase;
32863331
buildActionMask = 2147483647;
@@ -3292,7 +3337,7 @@
32923337
);
32933338
runOnlyForDeploymentPostprocessing = 0;
32943339
shellPath = /bin/sh;
3295-
shellScript = "FILENAME=conf.json\nRESOURCE_PATH=~/aadtests/$FILENAME\nBUILD_APP_DIR=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}-Runner.app/PlugIns/${PRODUCT_NAME}.xctest\n\nif [ -e $RESOURCE_PATH ]\nthen cp $RESOURCE_PATH $BUILD_APP_DIR/$FILENAME\nfi";
3340+
shellScript = "FILENAME=conf.json\nRESOURCE_PATH=~/aadtests/$FILENAME\nBUILD_APP_DIR=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}-Runner.app/PlugIns/${PRODUCT_NAME}.xctest\n\nif [ -e $RESOURCE_PATH ]\nthen cp $RESOURCE_PATH $BUILD_APP_DIR/$FILENAME\nfi\n";
32963341
};
32973342
B2BB739A2112C588000EA4C5 /* ShellScript */ = {
32983343
isa = PBXShellScriptBuildPhase;
@@ -3475,10 +3520,8 @@
34753520
B29E2AE521238FBE00B170ED /* XCUIElement+MSALiOSUITests.m in Sources */,
34763521
B29E2AE121238FBE00B170ED /* MSALBaseAADUITest.m in Sources */,
34773522
B29E2AE421238FBE00B170ED /* XCTestCase+TextFieldTap.m in Sources */,
3478-
B2BDEEE821FEA205001EBB8B /* MSALMultiAppCacheCoexistenceTests.m in Sources */,
34793523
B29E2AE621238FBE00B170ED /* XCUIElement+CrossPlat.m in Sources */,
34803524
B20E246221FEB8160037CA5E /* MSALNonUnifiedADALCoexistenceCacheTests.m in Sources */,
3481-
B20E246421FEB8DB0037CA5E /* MSALUnifiedADALCacheCoexistenceTests.m in Sources */,
34823525
B29E2AE321238FBE00B170ED /* NSDictionary+MSALiOSUITests.m in Sources */,
34833526
B29E2AE021238FBE00B170ED /* MSALADFSBaseUITest.m in Sources */,
34843527
);
@@ -3490,21 +3533,24 @@
34903533
files = (
34913534
B2BB73922112C3F3000EA4C5 /* XCUIElement+CrossPlat.m in Sources */,
34923535
B2D0A38B21C70D800071E0DA /* MSALBlackforestUITests.m in Sources */,
3536+
B282255F23EF97C50007DFE4 /* MSALNationalCloudUITest.m in Sources */,
34933537
B21F9DEA2120E89E00B1B40C /* MSALADFSBaseUITest.m in Sources */,
34943538
B2BB738D2112C3F3000EA4C5 /* MSALBaseiOSUITest.m in Sources */,
34953539
B2D0A38F21C71D900071E0DA /* MSALCacheRemovalTests.m in Sources */,
3540+
B282256223EF9BFF0007DFE4 /* MSALChinaCloudUITests.m in Sources */,
34963541
B2D0A38A21C70AF50071E0DA /* MSALPingUITests.m in Sources */,
34973542
B2BB73912112C3F3000EA4C5 /* XCUIElement+MSALiOSUITests.m in Sources */,
34983543
B2A1C33F21C7038D00DDAE8E /* MSALADFSv3FederatedTests.m in Sources */,
34993544
B2F4572A211C0B4800818910 /* MSALBaseAADUITest.m in Sources */,
3500-
B2D0A39921C73BD80071E0DA /* MSALB2CInteractiveTests.m in Sources */,
3545+
B282255C23EF811F0007DFE4 /* MSALB2CInteractiveTests.m in Sources */,
35013546
B2D0A38821C709C30071E0DA /* MSALShibUITests.m in Sources */,
35023547
B2BB73732112C32C000EA4C5 /* MSALAADBasicInteractiveTests.m in Sources */,
35033548
B2D0A38E21C71B8C0071E0DA /* MSALGuestUserTests.m in Sources */,
35043549
B2D0A39221C72C740071E0DA /* MSALMSABasicInteractiveTests.m in Sources */,
35053550
B2BB738F2112C3F3000EA4C5 /* MSALBaseUITest.m in Sources */,
35063551
B2BB73902112C3F3000EA4C5 /* NSDictionary+MSALiOSUITests.m in Sources */,
35073552
B2BB738E2112C3F3000EA4C5 /* XCTestCase+TextFieldTap.m in Sources */,
3553+
B282256323EF9BFF0007DFE4 /* MSALUSGovUITests.m in Sources */,
35083554
B2A1C33D21C6FBAF00DDAE8E /* MSALAADMultiUserTests.m in Sources */,
35093555
B2BB73992112C51E000EA4C5 /* MSALUITests.swift in Sources */,
35103556
B2D0A38321C708CF0071E0DA /* MSALADFSv4FederatedTests.m 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>1.1.1</string>
18+
<string>1.1.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.1.1</string>
18+
<string>1.1.2</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSHumanReadableCopyright</key>

MSAL/src/MSALErrorConverter.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ + (void)initialize
102102
@(MSIDErrorServerInvalidGrant) : @(MSALInternalErrorInvalidGrant),
103103
@(MSIDErrorServerInvalidScope) : @(MSALInternalErrorInvalidScope),
104104
@(MSIDErrorServerUnauthorizedClient): @(MSALInternalErrorUnauthorizedClient),
105+
@(MSIDErrorServerAccessDenied): @(MSALErrorUserCanceled),
105106
@(MSIDErrorServerDeclinedScopes): @(MSALErrorServerDeclinedScopes),
106107
@(MSIDErrorServerInvalidState) : @(MSALInternalErrorInvalidState),
107108
@(MSIDErrorServerProtectionPoliciesRequired) : @(MSALErrorServerProtectionPoliciesRequired),

MSAL/src/MSAL_Internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#define MSAL_VER_HIGH 1
2929
#define MSAL_VER_LOW 1
30-
#define MSAL_VER_PATCH 1
30+
#define MSAL_VER_PATCH 2
3131

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

MSAL/src/configuration/MSALWebviewParameters.m

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,23 @@ - (instancetype)initWithParentViewController:(MSALViewController *)parentViewCon
5252
return self;
5353
}
5454

55+
- (instancetype)initWithAuthPresentationViewController:(MSALViewController *)parentViewController
56+
{
57+
self = [super init];
58+
if (self)
59+
{
60+
_parentViewController = parentViewController;
61+
}
62+
63+
return self;
64+
}
65+
5566
#pragma mark - NSCopying
5667

5768
- (id)copyWithZone:(__unused NSZone *)zone
5869
{
5970
MSALWebviewParameters *item;
60-
item = [[MSALWebviewParameters alloc] initWithParentViewController:_parentViewController];
71+
item = [[MSALWebviewParameters alloc] initWithAuthPresentationViewController:_parentViewController];
6172
item.parentViewController = _parentViewController;
6273

6374
#if TARGET_OS_IPHONE

MSAL/src/public/MSALWebviewParameters.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,22 @@ NS_ASSUME_NONNULL_BEGIN
8383
@param parentViewController The view controller to present authorization UI from.
8484
@note parentViewController is mandatory on iOS 13+. It is strongly recommended on macOS 10.15+ to allow correct presentation of ASWebAuthenticationSession. If parentViewController is not provided on macOS 10.15+, MSAL will use application's keyWindow for presentation
8585
*/
86-
- (nonnull instancetype)initWithParentViewController:(MSALViewController *)parentViewController;
86+
- (nonnull instancetype)initWithParentViewController:(MSALViewController *)parentViewController DEPRECATED_MSG_ATTRIBUTE("Use -initWithAuthPresentationViewController: instead.");;
87+
88+
/**
89+
Creates an instance of MSALWebviewParameters with a provided parentViewController.
90+
@param parentViewController The view controller to present authorization UI from.
91+
@note parentViewController is mandatory on iOS 13+. It is strongly recommended on macOS 10.15+ to allow correct presentation of ASWebAuthenticationSession. If parentViewController is not provided on macOS 10.15+, MSAL will use application's keyWindow for presentation
92+
*/
93+
- (nonnull instancetype)initWithAuthPresentationViewController:(MSALViewController *)parentViewController;
8794

8895
#if TARGET_OS_IPHONE
8996

9097
#pragma mark - Unavailable initializers
9198

92-
- (nonnull instancetype)init DEPRECATED_MSG_ATTRIBUTE("Use -initWithParentViewController: instead.");
99+
- (nonnull instancetype)init DEPRECATED_MSG_ATTRIBUTE("Use -initWithAuthPresentationViewController: instead.");
93100

94-
+ (nonnull instancetype)new DEPRECATED_MSG_ATTRIBUTE("Use -initWithParentViewController: instead.");
101+
+ (nonnull instancetype)new DEPRECATED_MSG_ATTRIBUTE("Use -initWithAuthPresentationViewController: instead.");
95102

96103
#endif
97104

0 commit comments

Comments
 (0)