1
0
forked from baron/baron-sso

chore: update playwright fixtures to use real SSO domain

Since the OIDC authority was updated to https://sso.hmac.kr/oidc, the Playwright mocks and localStorage seed values must match exactly for tests to pass in the new configuration.
This commit is contained in:
2026-04-21 15:02:53 +09:00
parent e7156450ba
commit ae03fe1475
8 changed files with 37 additions and 37 deletions

View File

@@ -137,11 +137,11 @@ export async function seedAuth(page: Page, role?: string) {
};
window.localStorage.setItem(
"oidc.user:http://localhost:5000/oidc:devfront",
"oidc.user:https://sso.hmac.kr/oidc:devfront",
JSON.stringify(mockOidcUser),
);
window.localStorage.setItem(
"oidc.user:http://localhost:5000/oidc/:devfront",
"oidc.user:https://sso.hmac.kr/oidc/:devfront",
JSON.stringify(mockOidcUser),
);
window.localStorage.setItem("dev_role", injectedRole || "rp_admin");
@@ -155,12 +155,12 @@ export async function seedAuth(page: Page, role?: string) {
if (url.includes(".well-known/openid-configuration")) {
await route.fulfill({
json: {
issuer: "http://localhost:5000/oidc",
authorization_endpoint: "http://localhost:5000/oidc/auth",
token_endpoint: "http://localhost:5000/oidc/token",
jwks_uri: "http://localhost:5000/oidc/jwks",
userinfo_endpoint: "http://localhost:5000/oidc/userinfo",
end_session_endpoint: "http://localhost:5000/oidc/session/end",
issuer: "https://sso.hmac.kr/oidc",
authorization_endpoint: "https://sso.hmac.kr/oidc/auth",
token_endpoint: "https://sso.hmac.kr/oidc/token",
jwks_uri: "https://sso.hmac.kr/oidc/jwks",
userinfo_endpoint: "https://sso.hmac.kr/oidc/userinfo",
end_session_endpoint: "https://sso.hmac.kr/oidc/session/end",
},
headers: { "Access-Control-Allow-Origin": "*" },
});