Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export async function handle(request, env, ctx) {
const fx = fixtureCount(env, url);
if (fx != null) { const f = fixtureIdps(fx); return html(idpsPage({ ...v, idps: f.idps, health: f.health, added: f.added, sort: url.searchParams.get("sort"), fixture: fx }), { nonce: v.nonce }); }
const reg = await getRegistry(env);
return html(idpsPage({ ...v, idps: [...reg.idps.values()], health: await healthMap(env), added: await addedMap(env), sort: url.searchParams.get("sort") }), { nonce: v.nonce });
return html(idpsPage({ ...v, idps: [...reg.idps.values()].filter((i) => i.status !== "disabled"), health: await healthMap(env), added: await addedMap(env), sort: url.searchParams.get("sort") }), { nonce: v.nonce });
}
if (p === "/fixture/picker" && fixtureCount(env, url) != null) {
const n = fixtureCount(env, url), f = fixtureIdps(n);
Expand Down
8 changes: 8 additions & 0 deletions test/flow.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ test("pairwise sub: per sector, stable, different from the public sub", async ()
assert.notEqual(p1, pub);
});

test("the public /idps page lists active identity providers only", async () => {
const h = await setup({ idps: { good: "idp.example.test", off: "off.example.test" } });
h.registry.idps[1].status = "disabled";
const page = await (await h.request("/idps")).text();
assert.match(page, /IdP good/);
assert.doesNotMatch(page, /IdP off/);
});

test("a disabled IdP is not offered and cannot be chosen", async () => {
const h = await setup({ idps: { good: "idp.example.test", off: "off.example.test" } });
h.registry.idps[1].status = "disabled";
Expand Down
13 changes: 0 additions & 13 deletions transparency/2026/10.json

This file was deleted.

7 changes: 0 additions & 7 deletions transparency/2026/10.md

This file was deleted.

Loading