Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ require (
go.lumeweb.com/ipfs-sdk v0.1.89
go.lumeweb.com/ipfs-sdk/dnsname v0.1.64
go.lumeweb.com/oauth v0.1.6
go.lumeweb.com/portal-sdk v0.1.69
go.lumeweb.com/portal-sdk v0.1.71
go.lumeweb.com/queryutil v0.3.19
go.sia.tech/core v0.21.7
go.sia.tech/indexd v0.4.4
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,8 @@ go.lumeweb.com/portal-middleware v0.3.7 h1:kq4SZq4T/uhauqHehw2JaTbNJpPpE8/EQAC3R
go.lumeweb.com/portal-middleware v0.3.7/go.mod h1:Yn9ZsFy5n3x2jUJ085M9B/aoZ+ANQV5QD/MAE0BpJXo=
go.lumeweb.com/portal-router v0.7.7 h1:6mUGkG2BtHDygIPqRZs1sRkPLkz9l2wTXMUhZmdp24E=
go.lumeweb.com/portal-router v0.7.7/go.mod h1:hl51sHDKcgw8yxJ6RraYBOI1Vnufq33FhKwfKiqCkVg=
go.lumeweb.com/portal-sdk v0.1.69 h1:qyXietI23pCe+sj1zC7Q8lQQ+CmpsMvVe0p2Rb/T4Yg=
go.lumeweb.com/portal-sdk v0.1.69/go.mod h1:xwNOHOTaqcjvg7P3N8QhNDz9rITQyDQXPO4W8PWythE=
go.lumeweb.com/portal-sdk v0.1.71 h1:wPnR2zufo96Ao/vML5f5P2uyK0mDTPW2JOsePuy/WdI=
go.lumeweb.com/portal-sdk v0.1.71/go.mod h1:KKxa2hV+44EI+0riJIjREvz7/sqgWGRTxtLUGgnADZg=
go.lumeweb.com/queryutil v0.3.19 h1:GV+zKsyGJ+YYPZi0mqOocDAROCQruGdizrE8Aw8cNFk=
go.lumeweb.com/queryutil v0.3.19/go.mod h1:YPrXdEelsjJNBPXrG4IiYp4aq5YUk/l4uXw8z2cSAuw=
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
Expand Down
19 changes: 19 additions & 0 deletions internal/catalogops/admin_deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ type AdminDeps struct {
WebsiteAdminService func(cfgMgr config.Manager) (admin.WebsiteAdminService, error)
// PlatformDomainAdminService resolves the core admin.PlatformDomainAdminService.
PlatformDomainAdminService func(cfgMgr config.Manager) (admin.PlatformDomainAdminService, error)
// SocialProviderAdminService resolves the core admin.SocialProviderAdminService.
SocialProviderAdminService func(cfgMgr config.Manager) (admin.SocialProviderAdminService, error)
}

// config returns the live config manager for this invocation, or nil.
Expand Down Expand Up @@ -108,6 +110,15 @@ func (d AdminDeps) billing() (admin.BillingAdminService, error) {
return resolveService(cfgMgr, d.BillingAdminService, "billing")
}

// socialProviders resolves the SocialProviderAdminService for this invocation.
func (d AdminDeps) socialProviders() (admin.SocialProviderAdminService, error) {
cfgMgr, err := d.requireConfig()
if err != nil {
return nil, err
}
return resolveService(cfgMgr, d.SocialProviderAdminService, "social-provider")
}

// AdminOperations returns the catalog operations for the admin domain. Each
// admin section registers its operations here.
func AdminOperations(d AdminDeps) []catalog.Operation {
Expand All @@ -121,6 +132,14 @@ func AdminOperations(d AdminDeps) []catalog.Operation {
// admin websites
adminWebsitesBlock(d),
adminWebsitesUnblock(d),
// admin social-providers
adminSocialProvidersList(d),
adminSocialProvidersGet(d),
adminSocialProvidersCreate(d),
adminSocialProvidersUpdate(d),
adminSocialProvidersDelete(d),
adminSocialProvidersEnable(d),
adminSocialProvidersDisable(d),
// admin quota
adminQuotaPlansList(d),
adminQuotaPlansGet(d),
Expand Down
Loading
Loading