[MM-63421] add openID Authorization API-compliant PDP interface (#30462)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f8e16780ef
Коммит
3eb854c58d
@@ -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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user