mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 12:56:59 +00:00
[GH-ISSUE #5534] [FR] Only offer available authentication methods of a self-hosted instance #2465
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#2465
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 @almereyda on GitHub (Jun 13, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5534
Description
When configuring the
gotruecontainer in AppFlowy-Cloud with GitLab authentication enabled, it is not surfaced to the admin interface https://github.com/AppFlowy-IO/AppFlowy-Cloud/issues/621 nor does it become available as a choice in the AppFlowy app.Impact
Single-sign on is a contemporary means of authentication and many privacy-oriented organisations, esp. in civic society, rely on single-sign on providers that are independent from the large, commercial and proprietary platforms. The forked gotrue service already supports many authentication methods, which could be surfaced to the users.
Meanwhile the app could also autodetect which authentication methods are offered by the targeted AppFlowy-Cloud, which may help to reduce confusion and friction for some users, when trying to use an unconfigured authentication method.
Additional Context
This only applies to self-hosters of AppFlowy Cloud. Ideally the app parses the /gotrue/settings endpoint and adapts the offered login choices. In our example, we don't have Discord nor Google activated, yet their buttons show up in the app (not so in the admin interface).
@almereyda commented on GitHub (Oct 27, 2024):
Our instance now only shows configured OAuth clients (edit) when visiting the
admin_frontendat https://appflowy.example.org/web/loginAlso involved were https://github.com/AppFlowy-IO/AppFlowy-Cloud/issues/621 and https://github.com/AppFlowy-IO/AppFlowy-Cloud/pull/874
Keeping open until the Flutter App also supports adjusting its available authentication options.
@almereyda commented on GitHub (Apr 25, 2025):
@khorshuheng @annieappflowy Do you think we can prioritise this?
For many self-hosters it will only be natural to use an IdP that's not one of your preconfigured choices.
While logging in with custom OAuth already worked before with the admin interface (https://github.com/AppFlowy-IO/AppFlowy-Cloud/pull/874), the route https://appflowy.example.org/web/login ceased to exist following the availability of AppFlowy-Web.
Now I'm also not sure where this issue should live:
Where would the desired changes live, somewhere inbetween all of them?
@khorshuheng commented on GitHub (Apr 25, 2025):
The admin panel still exists, it is just moved under /console .
Right now, we can actually use SAML 2.0 to open AppFlowy. For example, after configuring SAML 2.0, we can launch AppFlowy directly from Authentik.
But I think what missing here, is a button like "Single sign on", which should connect to arbitrary identity provider, as long as they support SAML 2.0. Or, a generic OIDC login.
@khorshuheng commented on GitHub (Apr 25, 2025):
Related issues:
@almereyda commented on GitHub (May 14, 2025):
Thank you for pushing this forward.
I can confirm that the route
/consoleallows to login with the configured gotrue authentication methods, as expected.If only the console and the Web app would use the same token, then we could already be authenticated towards it via GitLab when switching the route. They remain on the same domain, why cookies could be shared.
In addition, I would suggest to add a tiny commit that extends the Nginx location regexp to also include
/console/as a valid entry point, which currently errors out on file not found 404 without a page body.Something like
console(\/?)might do?@maggiv8 commented on GitHub (Aug 19, 2025):
Hi there,
I am also trying to hide these options in the app/web-app (i.e. not-configured/support sign-in options like Google, etc.). It works obviosuly fine for the web admin console. Is this possible somehow and if so how?
Thank you.
@almereyda commented on GitHub (Sep 2, 2025):
The issue
provides more context.
Meanwhile we're patiently standing by for more work on documentation of more
details. I could offer to open a tracking issue on https://github.com/AppFlowy-IO/AppFlowy-Docs for that.
It is to note, as said, that as a workaround we can use the
/consoleroute https://github.com/AppFlowy-IO/AppFlowy-Cloud/issues/621 https://github.com/AppFlowy-IO/AppFlowy-Cloud/pull/874. It currently allows to login to the AppFlowy-Cloudadmin_frontendvia a web browser and then to trigger a login intent for a local AppFlowy app (tested on Linux and Android). It still does not allow to authenticate for AppFlowy-Web on///web.The tracking issue in AppFlowy-IO/AppFlowy-Web is
To close, citing from https://github.com/AppFlowy-IO/AppFlowy-Web/issues/105#issuecomment-3319199033:
@almereyda commented on GitHub (Sep 22, 2025):
@maggiv8 The latest Web release supports your use case since https://github.com/AppFlowy-IO/AppFlowy-Web/issues/105#issuecomment-3319240837 https://github.com/AppFlowy-IO/AppFlowy-Web/issues/139#issuecomment-3319284627
I've also written an accompanying follow up with:
@almereyda commented on GitHub (Oct 8, 2025):
#7240 also documents a case, where a user would like to hide the email login method, which was disabled in Gotrue/Supabase Auth.