From 7faec624d12618e09ea915753c87c1b123e418ed Mon Sep 17 00:00:00 2001 From: lewis Date: Mon, 5 Jan 2026 23:08:25 +0200 Subject: [PATCH] General linting, document react-native-streamplace-oauth-problem --- KNOWN_ISSUES.md | 23 +++ .../migration/ChooseHandleStep.svelte | 2 +- frontend/src/routes/Admin.svelte | 18 -- frontend/src/routes/AppPasswords.svelte | 9 - frontend/src/routes/Comms.svelte | 6 - frontend/src/routes/Controllers.svelte | 19 -- frontend/src/routes/DelegationAudit.svelte | 10 - frontend/src/routes/DidDocumentEditor.svelte | 6 - frontend/src/routes/InviteCodes.svelte | 9 - frontend/src/routes/Migration.svelte | 18 +- frontend/src/routes/OAuthConsent.svelte | 4 +- frontend/src/routes/Register.svelte | 6 - frontend/src/routes/RepoExplorer.svelte | 6 - frontend/src/routes/Security.svelte | 6 - frontend/src/routes/Settings.svelte | 3 +- frontend/src/routes/TrustedDevices.svelte | 6 - frontend/src/styles/migration.css | 8 + src/lib.rs | 4 + src/oauth/endpoints/authorize.rs | 193 ++++++++++++------ src/util.rs | 36 +++- 20 files changed, 214 insertions(+), 178 deletions(-) create mode 100644 KNOWN_ISSUES.md diff --git a/KNOWN_ISSUES.md b/KNOWN_ISSUES.md new file mode 100644 index 0000000..d061514 --- /dev/null +++ b/KNOWN_ISSUES.md @@ -0,0 +1,23 @@ +# Known Issues + +## stream.place iOS app OAuth flow fails + +OAuth flow with stream.place's iOS app (using expo-web-browser's ASWebAuthenticationSession) does not complete. After user approves consent, the redirect from our PDS to stream.place's callback URL is not followed by ASWebAuthenticationSession. + +What does work with stream.place: everything else :P +- Desktop browsers +- ios safari (regular browser) +- ASWebAuthenticationSession using the reference pds + +What fails: +- ASWebAuthenticationSession with this pds + +Attempted fixes (all failed): +- HTTP 302/303/307 redirects +- JavaScript navigation +- Meta refresh +- Form auto-submit +- Removing CORS headers +- HTTP/1.1 instead of HTTP/2 +- Minimal response headers + diff --git a/frontend/src/components/migration/ChooseHandleStep.svelte b/frontend/src/components/migration/ChooseHandleStep.svelte index e1d480e..48298fb 100644 --- a/frontend/src/components/migration/ChooseHandleStep.svelte +++ b/frontend/src/components/migration/ChooseHandleStep.svelte @@ -111,7 +111,7 @@
- + {$_('migration.inbound.chooseHandle.authMethod')}