Fix login with Intune using the Authenticator app (#9349) (#9396)

(cherry picked from commit 23fec945a4)

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
Mattermost Build 2026-01-07 12:53:30 +02:00 committed by GitHub
parent 55d457785a
commit e844023bcf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -168,10 +168,18 @@ NSString* const NOTIFICATION_TEST_ACTION = @"test";
// Required for deeplinking
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options{
// Handle MSAL URLs first before passing to RCTLinkingManager
if ([self handleMSALURL:url]) {
return YES;
}
return [RCTLinkingManager application:application openURL:url options:options];
}
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
// Handle MSAL URLs first before passing to RCTLinkingManager
if ([self handleMSALURL:url]) {
return YES;
}
return [RCTLinkingManager application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
}