From f3900825e30180a39b68ac80f099db70ffed894f Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 3 Aug 2025 12:34:12 +0800 Subject: [PATCH] :bug: Fix oidc --- ios/Runner.xcodeproj/project.pbxproj | 12 +----------- lib/screens/auth/oidc.native.dart | 4 ++-- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index b77035b..f2b8f72 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 77; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ @@ -379,8 +379,6 @@ 73ACDFAE2E3D0E6100B63535 /* SolianBroadcastExtension */, ); name = SolianBroadcastExtension; - packageProductDependencies = ( - ); productName = SolianBroadcastExtension; productReference = 73ACDFAB2E3D0E6100B63535 /* SolianBroadcastExtension.appex */; productType = "com.apple.product-type.app-extension"; @@ -599,14 +597,10 @@ inputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist", ); - inputPaths = ( - ); name = "[CP] Copy Pods Resources"; outputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist", ); - outputPaths = ( - ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; @@ -664,14 +658,10 @@ inputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); - inputPaths = ( - ); name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); - outputPaths = ( - ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; diff --git a/lib/screens/auth/oidc.native.dart b/lib/screens/auth/oidc.native.dart index 61a9762..de46c8d 100644 --- a/lib/screens/auth/oidc.native.dart +++ b/lib/screens/auth/oidc.native.dart @@ -80,7 +80,7 @@ class _OidcScreenState extends ConsumerState { : 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36', ), initialUrlRequest: URLRequest( - url: WebUri('$serverUrl/auth/login/${widget.provider}'), + url: WebUri('$serverUrl/id/auth/login/${widget.provider}'), headers: { if (token?.token.isNotEmpty ?? false) 'Authorization': 'AtField ${token!.token}', @@ -120,7 +120,7 @@ class _OidcScreenState extends ConsumerState { final queryParams = url.queryParameters; // Check if we're on the token page - if (path.endsWith('/id/auth/callback')) { + if (path.endsWith('/auth/callback')) { // Extract token from URL final challenge = queryParams['challenge']; // Return the token and close the webview