Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Auth list tenants is not pageable

未關閉
#1,192 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 4 天內回覆

@siddharthmohan619-eng 已經在處理了。

開始於 2026年3月9日。

  • #1194 來自 @siddharthmohan619-eng —— 未關閉

評估

難度
3/5
預估耗時
1-2 天
新手友好度
45/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
java

研究方向

從 FirebaseTenantClient.MAX_LIST_TENANTS_RESULTS 以及報告中所示的 TenantManager.listTenants 呼叫開始。執行或檢查現有的 ListTenantsPage 分頁行為,並將其與所描述的 GCP Identity Platform 請求進行比較。當能夠跨所有可用頁面擷取 tenants,且 SDK 不會錯誤地阻止所需的請求時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

  • Firebase SDK version: 9.8.0
  • Firebase Product: auth

Fetching tenants with firebaseAuth.getTenantManager().listTenants(null) does not return a PageToken even though more pages exist. There is no possibility to page through all tenants.

    private List<Tenant> getAllTenants() {
        ListTenantsPage listTenantsPage = null;
        List<Tenant> allTenants = new ArrayList<>();
        try {
            do {
                listTenantsPage = firebaseAuth.getTenantManager().listTenants(listTenantsPage == null ? null : listTenantsPage.getNextPageToken());
                for (Tenant tenant : listTenantsPage.iterateAll()) {
                    allTenants.add(tenant);
                }
                log.info("Next page token: {}", listTenantsPage.getNextPageToken());
            } while (listTenantsPage.hasNextPage());
        } catch (FirebaseAuthException e) {
            log.error("Could not list tenants", e);
        }
        log.info("Found {} tenants", allTenants.size());
        return allTenants;
    }

When viewing the tenants in the GCP Identity Platform, the same request is used with a page size of 2147483647. However, the admin sdk prevents requesting a page size over 100 (FirebaseTenantClient.MAX_LIST_TENANTS_RESULTS).

Please either remove the page size restriction in the sdk or fix pagination with page token of tenants

主要語言
Java
星號
620
分支
305
平均合併
3 天 12 小時
30 天內合併 PR
12

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

firebase/firebase-admin-java 的其他 Issue

查看 firebase/firebase-admin-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。