All of the mid-session and step-up auth work
This commit is contained in:
parent
1f31e0f1f8
commit
562bdd00f1
1 changed files with 11437 additions and 1212 deletions
18
clients/web/src/utils/pendingReauth.test.ts
Normal file
18
clients/web/src/utils/pendingReauth.test.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { describe, it, expect } from "vitest";
|
||||
import type { PendingReauth } from "./pendingReauth.js";
|
||||
|
||||
describe("PendingReauth", () => {
|
||||
it("carries step-up source through deferred resume", () => {
|
||||
const pending: PendingReauth = {
|
||||
serverId: "srv-1",
|
||||
challenge: {
|
||||
reason: "insufficient_scope",
|
||||
requiredScopes: ["weather:read"],
|
||||
},
|
||||
authorizationUrl: new URL("https://as.example/authorize"),
|
||||
authKind: "step_up",
|
||||
source: "tool",
|
||||
};
|
||||
expect(pending.source).toBe("tool");
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue