1
0
forked from baron/baron-sso

headless login SSA 백엔드 작업

This commit is contained in:
2026-05-04 14:58:31 +09:00
parent b888b33cde
commit 9f78698f54
3 changed files with 125 additions and 39 deletions

View File

@@ -981,10 +981,8 @@ function ClientGeneralPage() {
.map((scope) => scope.name.trim())
.filter(Boolean);
const persistedClientType = headlessLoginEnabled ? "pkce" : clientType;
const effectiveTokenEndpointAuthMethod = headlessLoginEnabled
? "none"
: tokenEndpointAuthMethod;
const persistedClientType = headlessLoginEnabled ? "private" : clientType;
const effectiveTokenEndpointAuthMethod = tokenEndpointAuthMethod;
const payload: ClientUpsertRequest = {
name,
@@ -992,7 +990,8 @@ function ClientGeneralPage() {
scopes: scopeNames,
tokenEndpointAuthMethod: effectiveTokenEndpointAuthMethod,
jwksUri:
effectiveTokenEndpointAuthMethod === "private_key_jwt" &&
(headlessLoginEnabled ||
effectiveTokenEndpointAuthMethod === "private_key_jwt") &&
trimmedJwksUri
? trimmedJwksUri
: undefined,