feat(iam2): add GetCert to the feature.Store seam (SAML metadata signing / LDAP)

This commit is contained in:
z
2026-07-16 10:58:24 -07:00
parent ba38443648
commit bfdc1fbc00
3 changed files with 7 additions and 0 deletions
+2
View File
@@ -27,6 +27,8 @@ type Store interface {
DeleteUser(ctx context.Context, owner, name string) (bool, error)
GetApplication(ctx context.Context, id string) (*model.Application, error)
GetOrganization(ctx context.Context, name string) (*model.Organization, error)
// GetCert resolves a signing cert by (owner, name) — SAML metadata signing, etc.
GetCert(ctx context.Context, owner, name string) (*model.Cert, error)
}
// Feature is one pluggable enterprise capability. Mount registers its routes on
+4
View File
@@ -86,3 +86,7 @@ func (s *ormStore) GetApplication(ctx context.Context, id string) (*model.Applic
func (s *ormStore) GetOrganization(ctx context.Context, name string) (*model.Organization, error) {
return store.GetOrganizationByName(ctx, s.db, name)
}
func (s *ormStore) GetCert(ctx context.Context, owner, name string) (*model.Cert, error) {
return store.GetCert(ctx, s.db, owner, name)
}
+1
View File
@@ -11,4 +11,5 @@ type (
User = schema.User
Application = schema.Application
Organization = schema.Organization
Cert = schema.Cert
)