mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[GH-ISSUE #6907] [Bug] Incorrect Redirect URL for Web Login #3059
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#3059
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @indigomado on GitHub (Dec 2, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/6907
Originally assigned to: @speed2exe, @qinluhe on GitHub.
Bug Description
When attempting to log in through the web version of AppFlowy using the magic link, the redirect URL in the verification email points to a mobile app URL scheme (appflowy-flutter://). This causes the user to be redirected to the mobile app, which prevents the user from completing the login process on the web platform.
How to Reproduce
Expected Behavior
The magic link should redirect the user to a web-based login page (e.g., https://yourwebapp.com/login-success), allowing the user to complete the login process on the web platform.
Operating System
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
AppFlowy Version(s)
0.7.5
Screenshots
No response
Additional Context
No response
@qinluhe commented on GitHub (Dec 3, 2024):
Our cloud will limit the domain name whitelist of front-end applications. For
test.appflowy.cloud, it can acceptlocalhostdomain names, butbeta.appflowy.cloudonly acceptsappflowy.comdomain names. Other domain names that do not meet the requirements will be opened to the client in a unified manner on the backend. Is this logic correct? @speed2exe@qinluhe commented on GitHub (Dec 3, 2024):
Are you using self hosted or magic link login from appflowy.com?
@indigomado commented on GitHub (Dec 3, 2024):
I conducted local testing and logged into the web app using localhost:3000.
Below are my environment variable settings:
AF_WS_URL=wss://test.appflowy.cloud/ws/v1
AF_BASE_URL=https://beta.appflowy.cloud
AF_GOTRUE_URL=https://beta.appflowy.cloud/gotrue
Let me know if you need any further adjustments!
@qinluhe commented on GitHub (Dec 3, 2024):
AF_BASE_URL=https://beta.appflowy.cloud/ AF_GOTRUE_URL=https://beta.appflowy.cloud/gotruetoAF_BASE_URL=https://test.appflowy.cloud/ AF_GOTRUE_URL=https://test.appflowy.cloud/gotruebeta.appflowy.cloud does not allow localhost access, we restrict web access to the whitelisted *appflowy.com
@speed2exe commented on GitHub (Dec 3, 2024):
@MADAOKAKU
The default URL schema is
appflowy-flutter://Due to security reason, only certain URL are valid to be redirected to after authentication, if invalid, it will fallback to this URL.
If you are doing local testing, this is expected.
For testing purposes, after receive the email, you should copy the url, change the
redirect_totohttp://yourhost/auth/callback@indigomado commented on GitHub (Dec 3, 2024):
@speed2exe Thank you! I'll close this issue.