1
0
forked from baron/baron-sso

feat(devfront): show client creators and headless filter

This commit is contained in:
2026-06-17 22:03:15 +09:00
parent 69e1e32fd4
commit 5f3167a503
7 changed files with 311 additions and 9 deletions

View File

@@ -127,6 +127,7 @@ type clientSummary struct {
Name string `json:"name"`
Type string `json:"type"`
Status string `json:"status"`
CreatorID string `json:"creatorId,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
RedirectURIs []string `json:"redirectUris"`
Scopes []string `json:"scopes"`
@@ -3224,6 +3225,7 @@ func (h *DevHandler) mapClientSummary(client domain.HydraClient) clientSummary {
}
}
}
creatorID := readMetadataStringValue(client.Metadata, "user_id")
clientType := "private"
if client.IsHeadlessLoginEnabled() {
@@ -3270,6 +3272,7 @@ func (h *DevHandler) mapClientSummary(client domain.HydraClient) clientSummary {
Name: name,
Type: clientType,
Status: status,
CreatorID: creatorID,
CreatedAt: createdAt,
RedirectURIs: client.RedirectURIs,
Scopes: scopes,