Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Question: Drop use of androids build in AccountManager

Đang mở
#49 12 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java
Lĩnh vực
authentication, mobile

Hướng nghiên cứu

Bắt đầu với AccountImporter.java được tham chiếu trong thư viện Android-SingleSignOn và xem xét cách AccountManager hiện cung cấp các tài khoản. Sau đó, kiểm tra phần tích hợp files app được đề xuất và luồng activity tùy chỉnh. Công việc được hoàn tất khi files app có thể liệt kê các tài khoản hiện có và trả về lựa chọn của người dùng mà không yêu cầu client sử dụng AccountManager.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

@tobiasKaminsky Just throwing in some thoughts here. As we had a bunch of issues already when trying to figure out which accounts exist, I was thinking about if we can drop the need to use the Android "AccountManager" at all. As of Android 9 getting accounts from another app is even more difficult. Therefore dropping it makes things easier for all involved parties.

Advantages:

  • reauthentication works without the need to request the account permission again (way easier for client apps as we don't need to restart the login flow)
  • Custom dialog for choosing the account (nextcloud design / theme)
  • reduce complexity of account handling (in the sso library)

Disadvantages:

  • None?

So basically what I'm proposing is:

  • Instead of calling the account manager to show us available accounts, we create a new custom activity in the files app for that. (Reference)
  • The files app lists all accounts available (as the files app has the required permission for that)
  • The users selects an account here

This also might be interesting for @desperateCoder @stefan-niedermann

Ngôn ngữ chính
Java
Star
75
Fork
36
Merge trung bình
21 giờ 5 phút
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/Android-SingleSignOn

Tất cả issue của nextcloud/Android-SingleSignOn

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.