Add COMPLIANCE_PORTAL OIDC provider type

Register the new provider enum value so compliance portal OAuth
clients can be stored and resolved like other IAM OIDC providers.

Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-07-15 10:58:46 +02:00
parent ba53c94bdc
commit ec91106063
3 changed files with 22 additions and 3 deletions

View File

@@ -28,8 +28,9 @@ import (
type OIDCProvider string
const (
OIDCProviderGoogle OIDCProvider = "GOOGLE"
OIDCProviderMicrosoft OIDCProvider = "MICROSOFT"
OIDCProviderGoogle OIDCProvider = "GOOGLE"
OIDCProviderMicrosoft OIDCProvider = "MICROSOFT"
OIDCProviderCompliancePortal OIDCProvider = "COMPLIANCE_PORTAL"
)
var (
@@ -42,6 +43,7 @@ func OIDCProviders() []OIDCProvider {
return []OIDCProvider{
OIDCProviderGoogle,
OIDCProviderMicrosoft,
OIDCProviderCompliancePortal,
}
}
@@ -49,7 +51,8 @@ func (v OIDCProvider) IsValid() bool {
switch v {
case
OIDCProviderGoogle,
OIDCProviderMicrosoft:
OIDCProviderMicrosoft,
OIDCProviderCompliancePortal:
return true
}