Skip to content

Commit fce0215

Browse files
committed
Merge branch 'dev' into spetrescu/merge_main_1.5.0_to_dev
# Conflicts: # CHANGELOG.md
2 parents fd1584b + 277b9e7 commit fce0215

File tree

27 files changed

+1313
-36
lines changed

27 files changed

+1313
-36
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [TBD]:
2+
* VisionOS support added (#2139)
3+
14
## [1.5.0]
25
* Increased macOS minimum version to 10.15 (#2220)
36
* Added Native Auth feature for MacOS to interact with the Microsoft Entra ID services (#2220)

MSAL/MSAL.xcodeproj/project.pbxproj

Lines changed: 310 additions & 14 deletions
Large diffs are not rendered by default.

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]
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
//
2+
// Copyright (c) Microsoft Corporation.
3+
// All rights reserved.
4+
//
5+
// This code is licensed under the MIT License.
6+
//
7+
// Permission is hereby granted, free of charge, to any person obtaining a copy
8+
// of this software and associated documentation files(the "Software"), to deal
9+
// in the Software without restriction, including without limitation the rights
10+
// to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11+
// copies of the Software, and to permit persons to whom the Software is
12+
// furnished to do so, subject to the following conditions :
13+
//
14+
// The above copyright notice and this permission notice shall be included in
15+
// all copies or substantial portions of the Software.
16+
//
17+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
// THE SOFTWARE.
24+
25+
26+
import SwiftUI
27+
import RealityKit
28+
29+
struct ContentView: View {
30+
var body: some View {
31+
32+
VStack {
33+
MSALTestAppView()
34+
}
35+
36+
}
37+
}
38+
39+
#Preview(windowStyle: .automatic) {
40+
ContentView()
41+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
//
2+
// Copyright (c) Microsoft Corporation.
3+
// All rights reserved.
4+
//
5+
// This code is licensed under the MIT License.
6+
//
7+
// Permission is hereby granted, free of charge, to any person obtaining a copy
8+
// of this software and associated documentation files(the "Software"), to deal
9+
// in the Software without restriction, including without limitation the rights
10+
// to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11+
// copies of the Software, and to permit persons to whom the Software is
12+
// furnished to do so, subject to the following conditions :
13+
//
14+
// The above copyright notice and this permission notice shall be included in
15+
// all copies or substantial portions of the Software.
16+
//
17+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
// THE SOFTWARE.
24+
25+
26+
import SwiftUI
27+
28+
struct MSALTestAppView: UIViewControllerRepresentable {
29+
typealias UIViewControllerType = MSALTestAppVisionViewController
30+
31+
func makeUIViewController(context: Context) -> MSALTestAppVisionViewController {
32+
let vc = MSALTestAppVisionViewController()
33+
34+
return vc
35+
}
36+
37+
func updateUIViewController(_ uiViewController: MSALTestAppVisionViewController, context: Context) {
38+
// nothing for now
39+
}
40+
41+
}
42+
43+
#Preview {
44+
MSALTestAppView()
45+
}

0 commit comments

Comments
 (0)