bug: "Login on web" button not shown when only Nextcloud login provider is configured
I maintainer di solito rispondono entro 4 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 74/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- react-native, typescript
- Ambito
- mobile
Direzione di ricerca
Inizia da getLoginServices in app/lib/services/connect.ts e dal controllo di fallback in app/containers/LoginServices/index.tsx. Segui la gestione dei servizi OAuth non supportati con hideButtonOnMobile: true, poi verifica il comportamento della schermata di accesso quando Nextcloud è l’unico provider. Il lavoro è completato quando l’app mostra «Login on web» per questa configurazione; l’issue non indica un file di test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the Bug
The only external login on our workspace is the built-in Nextcloud OAuth provider. The default login form is disabled. In the mobile app, the login screen shows no login option at all, only "New user registration is currently disabled". The "Login on web" does not appear, so users can't log in from the app.
Login through the same provider works fine in the web client.
Steps to Reproduce
- On a Rocket.Chat 9.x server, enable the built-in Nextcloud OAuth provider (Administration → Settings → OAuth → Nextcloud) and make sure no other OAuth provider is enabled (no Custom OAuth, Google, GitHub, etc.).
- Disable the default login form (
Accounts_ShowFormLogin= false). - Set registration to disabled (
Accounts_RegistrationForm= Disabled). - Check that
GET /api/v1/settings.oauthreturns only thenextcloudservice withhideButtonOnMobile: true. - Open the Rocket.Chat mobile app (4.79.0) and add the workspace.
- Look at the login screen.
Expected Behavior
"Login on web" should also appear when the server returns OAuth services that the app does not support natively. Since 9.0, all OAuth logins use the server-side flow, so the web login can handle any provider.
Actual Behavior
The login screen shows only the workspace name, the URL and the text "New user registration is currently disabled". There is no Nextcloud button, no "Login on web" button and no login form, so users have no way to log in from the app.
In the web client, the same workspace shows the Nextcloud button and the login works as expected.
If a Custom OAuth provider is enabled as well, the "Login on web" button appears in the app. The web page it opens shows the Nextcloud button, and the login through Nextcloud completes successfully in the app.
Rocket.Chat Server Version
9.x.x
Rocket.Chat App Version
4.79.0 (110274)
Device Name
iPhone 16
OS Version
iOS 27.2.1
Additional Context
Root cause (from source)
-
getLoginServicesdrops every service thatdetermineAuthTypeclassifies asnot_supported.nextcloudis not inavailableOAuth, so the service is removed fromstate.login.services: -
LoginServicesonly shows "Login on web" if a service that is still in that list hashideButtonOnMobile: true. Services that were already dropped don't count:
So a workspace whose providers are all unsupported never gets the "Login on web" fallback.
Workaround / confirmation
If we also enable a Custom OAuth provider (which is kept as oauth_custom and hidden because of hideButtonOnMobile: true), "Login on web" appears. The web page it opens shows the Nextcloud button, and the login completes successfully in the app. This only works with a Premium license, since Custom OAuth is premium-only from 9.0.
- Lingua principale
- TypeScript
- Stelle
- 2.4k
- Fork
- 1.5k
- Merge medio
- 5g 16h
- PR unite (30g)
- 38
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RocketChat/Rocket.Chat.ReactNative
-
Release network security config allows plain HTTP to 10.0.2.2 and localhostForse già presa @samarkumar4355 l’ha presa 2 giorni fa. Apertatype: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
RocketChat/Rocket.Chat.ReactNative#7941 · 2 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
[IMPROVEMENT] Remove redundant `await` on synchronous `userPreferences.getBool` in `getUsersPresence`Forse già presa @sandeepannandi l’ha presa 2 giorni fa. Apertatype: feature
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
RocketChat/Rocket.Chat.ReactNative#7737 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
✅ tests 👷 ci type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
RocketChat/Rocket.Chat.ReactNative#7247 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
bug: goRoom navigates to broken RoomView after failed DM creation from searchForse già presa @deepak0x l’ha presa 235 giorni fa. Apertatype: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
RocketChat/Rocket.Chat.ReactNative#7098 ·
I maintainer di solito rispondono entro 4 giorni
-
Bug Fix: slugifyLikeString skips sanitization due to unassigned replace() resultForse già presa @deepak0x l’ha presa 389 giorni fa. Aperta🐛 bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
RocketChat/Rocket.Chat.ReactNative#6782 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di RocketChat/Rocket.Chat.ReactNative
Issue simili
-
dependencies effort: small good first issue priority: low
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
TMHSDigital/screencast-mcp#509 ·
I maintainer di solito rispondono entro 1 giorno
-
from-review tech-debt testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
blamechris/chroxy#9520 ·
I maintainer di solito rispondono entro 1 giorno
-
area:web complexity:S priority:P2 type:chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
nahuelcostac/agent-hub#104 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
snaglet-org/snaglet#78 ·
I maintainer di solito rispondono entro 1 giorno
-
agent/guide documentation help wanted stage/010-actionable
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
kubestellar/console-marketplace#1101 ·
I maintainer di solito rispondono entro 1 giorno