forked from baron/baron-sso
감사 로그 403 권한 안내 문구 및 locale 키 반영
This commit is contained in:
@@ -26,16 +26,16 @@ func TestDevHandler_Isolation(t *testing.T) {
|
||||
if r.Method == http.MethodGet && r.URL.Path == "/clients" {
|
||||
return httpJSONAny(r, http.StatusOK, []map[string]interface{}{
|
||||
{
|
||||
"client_id": "client-tenant-a",
|
||||
"client_name": "App Tenant A",
|
||||
"client_id": "client-tenant-a",
|
||||
"client_name": "App Tenant A",
|
||||
"token_endpoint_auth_method": "none", // PKCE
|
||||
"metadata": map[string]interface{}{"tenant_id": "tenant-a"},
|
||||
"metadata": map[string]interface{}{"tenant_id": "tenant-a"},
|
||||
},
|
||||
{
|
||||
"client_id": "client-tenant-b",
|
||||
"client_name": "App Tenant B",
|
||||
"client_id": "client-tenant-b",
|
||||
"client_name": "App Tenant B",
|
||||
"token_endpoint_auth_method": "none", // PKCE
|
||||
"metadata": map[string]interface{}{"tenant_id": "tenant-b"},
|
||||
"metadata": map[string]interface{}{"tenant_id": "tenant-b"},
|
||||
},
|
||||
}), nil
|
||||
}
|
||||
@@ -46,10 +46,10 @@ func TestDevHandler_Isolation(t *testing.T) {
|
||||
tenantID = "tenant-b"
|
||||
}
|
||||
return httpJSONAny(r, http.StatusOK, map[string]interface{}{
|
||||
"client_id": id,
|
||||
"client_name": "App " + id,
|
||||
"client_id": id,
|
||||
"client_name": "App " + id,
|
||||
"token_endpoint_auth_method": "none",
|
||||
"metadata": map[string]interface{}{"tenant_id": tenantID},
|
||||
"metadata": map[string]interface{}{"tenant_id": tenantID},
|
||||
}), nil
|
||||
}
|
||||
if r.Method == http.MethodPost && r.URL.Path == "/clients" {
|
||||
|
||||
Reference in New Issue
Block a user