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

@@ -2524,6 +2524,20 @@ func TestMapClientSummary_ClassifiesHeadlessLoginAsPrivate(t *testing.T) {
assert.Equal(t, "private", summary.Type)
}
func TestMapClientSummary_ExposesCreatorIDFromMetadataUserID(t *testing.T) {
h := &DevHandler{}
summary := h.mapClientSummary(domain.HydraClient{
ClientID: "client-created-by",
ClientName: "Creator Visible App",
Metadata: map[string]any{
"user_id": "creator-user-id",
},
})
assert.Equal(t, "creator-user-id", summary.CreatorID)
}
func TestCreateClient_HeadlessLoginRejectsInlineJWKS(t *testing.T) {
var hydraCalled bool
h := &DevHandler{