bug: "Login on web" button not shown when only Nextcloud login provider is configured
Los mantenedores suelen responder en 4 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 74/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react-native, typescript
- Área
- mobile
Línea de trabajo
Empieza por getLoginServices en app/lib/services/connect.ts y la comprobación de respaldo en app/containers/LoginServices/index.tsx. Sigue cómo se gestionan los servicios OAuth no compatibles con hideButtonOnMobile: true y, después, comprueba el comportamiento de la pantalla de inicio de sesión cuando Nextcloud es el único proveedor. Se considera terminado cuando la app muestra «Login on web» para esta configuración; el issue no especifica ningún archivo de prueba.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2.4k
- Forks
- 1.5k
- Merge medio
- 5 d 16 h
- PR fusionados (30 d)
- 38
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de RocketChat/Rocket.Chat.ReactNative
-
Release network security config allows plain HTTP to 10.0.2.2 and localhostPosiblemente ocupada @samarkumar4355 la tomó hace 2 días. Abiertotype: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
RocketChat/Rocket.Chat.ReactNative#7941 · 2 comentarios ·
Los mantenedores suelen responder en 4 días
-
[IMPROVEMENT] Remove redundant `await` on synchronous `userPreferences.getBool` in `getUsersPresence`Posiblemente ocupada @sandeepannandi la tomó hace 2 días. Abiertotype: feature
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
RocketChat/Rocket.Chat.ReactNative#7737 · 1 comentario ·
Los mantenedores suelen responder en 4 días
-
✅ tests 👷 ci type: feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
RocketChat/Rocket.Chat.ReactNative#7247 · 1 comentario ·
Los mantenedores suelen responder en 4 días
-
bug: goRoom navigates to broken RoomView after failed DM creation from searchPosiblemente ocupada @deepak0x la tomó hace 235 días. Abiertotype: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
RocketChat/Rocket.Chat.ReactNative#7098 ·
Los mantenedores suelen responder en 4 días
-
Bug Fix: slugifyLikeString skips sanitization due to unassigned replace() resultPosiblemente ocupada @deepak0x la tomó hace 389 días. Abierto🐛 bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
RocketChat/Rocket.Chat.ReactNative#6782 · 1 comentario ·
Los mantenedores suelen responder en 4 días
Todos los issues de RocketChat/Rocket.Chat.ReactNative
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
zabuton-app/meguri#875 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
iruzen-dono/workless#117 ·
Los mantenedores suelen responder en 1 día
-
area:api area:web wave wave:trivial
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
vetro-protocol/vetro-monorepo#1321 ·
Los mantenedores suelen responder en 1 día