bug: "Login on web" button not shown when only Nextcloud login provider is configured
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 74/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- react-native, typescript
- Lĩnh vực
- mobile
Hướng nghiên cứu
Bắt đầu với getLoginServices trong app/lib/services/connect.ts và bước kiểm tra dự phòng trong app/containers/LoginServices/index.tsx. Theo dõi cách các dịch vụ OAuth không được hỗ trợ có hideButtonOnMobile: true được xử lý, sau đó kiểm tra hành vi của màn hình đăng nhập khi Nextcloud là nhà cung cấp duy nhất. Công việc được xem là hoàn tất khi ứng dụng hiển thị “Login on web” với cấu hình này; issue không nêu tên tệp kiểm thử.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 2.4k
- Fork
- 1.5k
- Merge trung bình
- 5 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 38
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của RocketChat/Rocket.Chat.ReactNative
-
Release network security config allows plain HTTP to 10.0.2.2 and localhostCó thể đã có người làm @samarkumar4355 đã nhận 2 ngày trước. Đang mởtype: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
RocketChat/Rocket.Chat.ReactNative#7941 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[IMPROVEMENT] Remove redundant `await` on synchronous `userPreferences.getBool` in `getUsersPresence`Có thể đã có người làm @sandeepannandi đã nhận 2 ngày trước. Đang mởtype: feature
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
RocketChat/Rocket.Chat.ReactNative#7737 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
✅ tests 👷 ci type: feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
RocketChat/Rocket.Chat.ReactNative#7247 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug: goRoom navigates to broken RoomView after failed DM creation from searchCó thể đã có người làm @deepak0x đã nhận 235 ngày trước. Đang mởtype: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
RocketChat/Rocket.Chat.ReactNative#7098 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Bug Fix: slugifyLikeString skips sanitization due to unassigned replace() resultCó thể đã có người làm @deepak0x đã nhận 389 ngày trước. Đang mở🐛 bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
RocketChat/Rocket.Chat.ReactNative#6782 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của RocketChat/Rocket.Chat.ReactNative
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
zabuton-app/meguri#875 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
iruzen-dono/workless#117 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:api area:web wave wave:trivial
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
vetro-protocol/vetro-monorepo#1321 ·
Maintainer thường phản hồi trong vòng 1 ngày