From 88dc8d719a297604a34f8eba39610f18a3149ac2 Mon Sep 17 00:00:00 2001 From: ulfrxdev Date: Tue, 28 Apr 2026 16:18:21 +0200 Subject: [PATCH] feat(02-05): wire iOS OIDC callback - Register recipe URL scheme in Info.plist - Forward SwiftUI openURL callbacks to the AppAuth bridge --- iosApp/iosApp/Info.plist | 11 +++++++++++ iosApp/iosApp/iOSApp.swift | 6 ++++++ 2 files changed, 17 insertions(+) diff --git a/iosApp/iosApp/Info.plist b/iosApp/iosApp/Info.plist index 99d16fa..e4b1943 100644 --- a/iosApp/iosApp/Info.plist +++ b/iosApp/iosApp/Info.plist @@ -4,5 +4,16 @@ CADisableMinimumFrameDurationOnPhone + CFBundleURLTypes + + + CFBundleURLName + dev.ulfrx.recipe.auth + CFBundleURLSchemes + + recipe + + + diff --git a/iosApp/iosApp/iOSApp.swift b/iosApp/iosApp/iOSApp.swift index 500c459..87efa19 100644 --- a/iosApp/iosApp/iOSApp.swift +++ b/iosApp/iosApp/iOSApp.swift @@ -10,6 +10,12 @@ struct iOSApp: App { var body: some Scene { WindowGroup { ContentView() + .onOpenURL { url in + guard url.scheme == "recipe", url.host == "callback" else { + return + } + _ = IosAppAuthBridge.shared.resumeExternalUserAgentFlow(urlString: url.absoluteString) + } } } }