Skip to content

Commit 23fec94

Browse files
authored
Fix login with Intune using the Authenticator app (#9349)
1 parent 3ee8afb commit 23fec94

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ios/Mattermost/AppDelegate.mm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,18 @@ -(void)application:(UIApplication *)application didReceiveRemoteNotification:(no
168168

169169
// Required for deeplinking
170170
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options{
171+
// Handle MSAL URLs first before passing to RCTLinkingManager
172+
if ([self handleMSALURL:url]) {
173+
return YES;
174+
}
171175
return [RCTLinkingManager application:application openURL:url options:options];
172176
}
173177

174178
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
179+
// Handle MSAL URLs first before passing to RCTLinkingManager
180+
if ([self handleMSALURL:url]) {
181+
return YES;
182+
}
175183
return [RCTLinkingManager application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
176184
}
177185

0 commit comments

Comments
 (0)