forked from baron/baron-sso
offline_access 기본 스코프 추가 및 refresh_token 발급 확인
This commit is contained in:
@@ -409,7 +409,7 @@ describe("ClientGeneralPage RP claims", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("shows supported scopes and custom claims without integrated offline_access from the add scope button", async () => {
|
||||
it("shows supported scopes including offline_access and custom claims from the add scope button", async () => {
|
||||
const { container } = await renderPage();
|
||||
|
||||
const addScopeButton = Array.from(
|
||||
@@ -422,7 +422,7 @@ describe("ClientGeneralPage RP claims", () => {
|
||||
});
|
||||
await flush();
|
||||
|
||||
expect(container.textContent).not.toContain("offline_access");
|
||||
expect(container.textContent).toContain("offline_access");
|
||||
expect(container.textContent).toContain("old_claim");
|
||||
|
||||
const customClaimButton = Array.from(
|
||||
|
||||
@@ -659,6 +659,15 @@ function ClientGeneralPage() {
|
||||
description: t("msg.dev.clients.scopes.email", "이메일 주소 접근"),
|
||||
mandatory: false,
|
||||
},
|
||||
{
|
||||
id: "5",
|
||||
name: "offline_access",
|
||||
description: t(
|
||||
"msg.dev.clients.scopes.offline_access",
|
||||
"refresh token 발급 요청",
|
||||
),
|
||||
mandatory: false,
|
||||
},
|
||||
]);
|
||||
const [idTokenClaims, setIdTokenClaims] = useState<IdTokenClaimItem[]>([]);
|
||||
const browserTimeZone = useMemo(() => getBrowserTimeZone(), []);
|
||||
@@ -759,6 +768,15 @@ function ClientGeneralPage() {
|
||||
description: tenantScopeDescription,
|
||||
source: "standard",
|
||||
},
|
||||
{
|
||||
id: "standard-offline-access",
|
||||
name: "offline_access",
|
||||
description: t(
|
||||
"msg.dev.clients.scopes.offline_access",
|
||||
"refresh token 발급 요청",
|
||||
),
|
||||
source: "standard",
|
||||
},
|
||||
],
|
||||
[tenantScopeDescription],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user