[MM-63421] add openID Authorization API-compliant PDP interface (#30462)

Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2025-04-02 11:04:27 +02:00
коммит произвёл GitHub
родитель f8e16780ef
Коммит 3eb854c58d
5 изменённых файлов: 133 добавлений и 0 удалений

Просмотреть файл

@@ -37,3 +37,9 @@ var metricsInterfaceFn func(*PlatformService, string, string) einterfaces.Metric
func RegisterMetricsInterface(f func(*PlatformService, string, string) einterfaces.MetricsInterface) {
metricsInterfaceFn = f
}
var pdpInterface func(*PlatformService) einterfaces.PolicyDecisionPointInterface
func RegisterPdpInterface(f func(*PlatformService) einterfaces.PolicyDecisionPointInterface) {
pdpInterface = f
}

Просмотреть файл

@@ -111,6 +111,8 @@ type PlatformService struct {
// This is a test mode setting used to enable Redis
// without a license.
forceEnableRedis bool
pdpService einterfaces.PolicyDecisionPointInterface
}
type HookRunner interface {
@@ -474,6 +476,10 @@ func (ps *PlatformService) initEnterprise() {
if licenseInterface != nil {
ps.licenseManager = licenseInterface(ps)
}
if pdpInterface != nil {
ps.pdpService = pdpInterface(ps)
}
}
func (ps *PlatformService) TotalWebsocketConnections() int {