From c0dbbb404e68d631f29edab22164b5ec30282e5f Mon Sep 17 00:00:00 2001
From: aeneasr <3372410+aeneasr@users.noreply.github.com>
Date: Wed, 15 Jan 2025 14:12:41 +0100
Subject: [PATCH] fix: add missing saml group
---
internal/client-go/model_ui_node.go | 2 +-
internal/httpclient/model_ui_node.go | 2 +-
spec/api.json | 7 ++++---
spec/swagger.json | 7 ++++---
ui/node/node.go | 1 +
5 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/internal/client-go/model_ui_node.go b/internal/client-go/model_ui_node.go
index 84b728514114..b83ec542c65a 100644
--- a/internal/client-go/model_ui_node.go
+++ b/internal/client-go/model_ui_node.go
@@ -18,7 +18,7 @@ import (
// UiNode Nodes are represented as HTML elements or their native UI equivalents. For example, a node can be an `
` tag, or an `` but also `some plain text`.
type UiNode struct {
Attributes UiNodeAttributes `json:"attributes"`
- // Group specifies which group (e.g. password authenticator) this node belongs to. default DefaultGroup password PasswordGroup oidc OpenIDConnectGroup profile ProfileGroup link LinkGroup code CodeGroup totp TOTPGroup lookup_secret LookupGroup webauthn WebAuthnGroup passkey PasskeyGroup identifier_first IdentifierFirstGroup captcha CaptchaGroup
+ // Group specifies which group (e.g. password authenticator) this node belongs to. default DefaultGroup password PasswordGroup oidc OpenIDConnectGroup profile ProfileGroup link LinkGroup code CodeGroup totp TOTPGroup lookup_secret LookupGroup webauthn WebAuthnGroup passkey PasskeyGroup identifier_first IdentifierFirstGroup captcha CaptchaGroup saml SAMLGroup
Group string `json:"group"`
Messages []UiText `json:"messages"`
Meta UiNodeMeta `json:"meta"`
diff --git a/internal/httpclient/model_ui_node.go b/internal/httpclient/model_ui_node.go
index 84b728514114..b83ec542c65a 100644
--- a/internal/httpclient/model_ui_node.go
+++ b/internal/httpclient/model_ui_node.go
@@ -18,7 +18,7 @@ import (
// UiNode Nodes are represented as HTML elements or their native UI equivalents. For example, a node can be an `
` tag, or an `` but also `some plain text`.
type UiNode struct {
Attributes UiNodeAttributes `json:"attributes"`
- // Group specifies which group (e.g. password authenticator) this node belongs to. default DefaultGroup password PasswordGroup oidc OpenIDConnectGroup profile ProfileGroup link LinkGroup code CodeGroup totp TOTPGroup lookup_secret LookupGroup webauthn WebAuthnGroup passkey PasskeyGroup identifier_first IdentifierFirstGroup captcha CaptchaGroup
+ // Group specifies which group (e.g. password authenticator) this node belongs to. default DefaultGroup password PasswordGroup oidc OpenIDConnectGroup profile ProfileGroup link LinkGroup code CodeGroup totp TOTPGroup lookup_secret LookupGroup webauthn WebAuthnGroup passkey PasskeyGroup identifier_first IdentifierFirstGroup captcha CaptchaGroup saml SAMLGroup
Group string `json:"group"`
Messages []UiText `json:"messages"`
Meta UiNodeMeta `json:"meta"`
diff --git a/spec/api.json b/spec/api.json
index 6f31f07b7172..210e6cca8592 100644
--- a/spec/api.json
+++ b/spec/api.json
@@ -2231,7 +2231,7 @@
"$ref": "#/components/schemas/uiNodeAttributes"
},
"group": {
- "description": "Group specifies which group (e.g. password authenticator) this node belongs to.\ndefault DefaultGroup\npassword PasswordGroup\noidc OpenIDConnectGroup\nprofile ProfileGroup\nlink LinkGroup\ncode CodeGroup\ntotp TOTPGroup\nlookup_secret LookupGroup\nwebauthn WebAuthnGroup\npasskey PasskeyGroup\nidentifier_first IdentifierFirstGroup\ncaptcha CaptchaGroup",
+ "description": "Group specifies which group (e.g. password authenticator) this node belongs to.\ndefault DefaultGroup\npassword PasswordGroup\noidc OpenIDConnectGroup\nprofile ProfileGroup\nlink LinkGroup\ncode CodeGroup\ntotp TOTPGroup\nlookup_secret LookupGroup\nwebauthn WebAuthnGroup\npasskey PasskeyGroup\nidentifier_first IdentifierFirstGroup\ncaptcha CaptchaGroup\nsaml SAMLGroup",
"enum": [
"default",
"password",
@@ -2244,10 +2244,11 @@
"webauthn",
"passkey",
"identifier_first",
- "captcha"
+ "captcha",
+ "saml"
],
"type": "string",
- "x-go-enum-desc": "default DefaultGroup\npassword PasswordGroup\noidc OpenIDConnectGroup\nprofile ProfileGroup\nlink LinkGroup\ncode CodeGroup\ntotp TOTPGroup\nlookup_secret LookupGroup\nwebauthn WebAuthnGroup\npasskey PasskeyGroup\nidentifier_first IdentifierFirstGroup\ncaptcha CaptchaGroup"
+ "x-go-enum-desc": "default DefaultGroup\npassword PasswordGroup\noidc OpenIDConnectGroup\nprofile ProfileGroup\nlink LinkGroup\ncode CodeGroup\ntotp TOTPGroup\nlookup_secret LookupGroup\nwebauthn WebAuthnGroup\npasskey PasskeyGroup\nidentifier_first IdentifierFirstGroup\ncaptcha CaptchaGroup\nsaml SAMLGroup"
},
"messages": {
"$ref": "#/components/schemas/uiTexts"
diff --git a/spec/swagger.json b/spec/swagger.json
index 38c8d2d8555e..f2f4f05ab25b 100755
--- a/spec/swagger.json
+++ b/spec/swagger.json
@@ -5349,7 +5349,7 @@
"$ref": "#/definitions/uiNodeAttributes"
},
"group": {
- "description": "Group specifies which group (e.g. password authenticator) this node belongs to.\ndefault DefaultGroup\npassword PasswordGroup\noidc OpenIDConnectGroup\nprofile ProfileGroup\nlink LinkGroup\ncode CodeGroup\ntotp TOTPGroup\nlookup_secret LookupGroup\nwebauthn WebAuthnGroup\npasskey PasskeyGroup\nidentifier_first IdentifierFirstGroup\ncaptcha CaptchaGroup",
+ "description": "Group specifies which group (e.g. password authenticator) this node belongs to.\ndefault DefaultGroup\npassword PasswordGroup\noidc OpenIDConnectGroup\nprofile ProfileGroup\nlink LinkGroup\ncode CodeGroup\ntotp TOTPGroup\nlookup_secret LookupGroup\nwebauthn WebAuthnGroup\npasskey PasskeyGroup\nidentifier_first IdentifierFirstGroup\ncaptcha CaptchaGroup\nsaml SAMLGroup",
"type": "string",
"enum": [
"default",
@@ -5363,9 +5363,10 @@
"webauthn",
"passkey",
"identifier_first",
- "captcha"
+ "captcha",
+ "saml"
],
- "x-go-enum-desc": "default DefaultGroup\npassword PasswordGroup\noidc OpenIDConnectGroup\nprofile ProfileGroup\nlink LinkGroup\ncode CodeGroup\ntotp TOTPGroup\nlookup_secret LookupGroup\nwebauthn WebAuthnGroup\npasskey PasskeyGroup\nidentifier_first IdentifierFirstGroup\ncaptcha CaptchaGroup"
+ "x-go-enum-desc": "default DefaultGroup\npassword PasswordGroup\noidc OpenIDConnectGroup\nprofile ProfileGroup\nlink LinkGroup\ncode CodeGroup\ntotp TOTPGroup\nlookup_secret LookupGroup\nwebauthn WebAuthnGroup\npasskey PasskeyGroup\nidentifier_first IdentifierFirstGroup\ncaptcha CaptchaGroup\nsaml SAMLGroup"
},
"messages": {
"$ref": "#/definitions/uiTexts"
diff --git a/ui/node/node.go b/ui/node/node.go
index 7d9137db20ff..b8e50e39bb84 100644
--- a/ui/node/node.go
+++ b/ui/node/node.go
@@ -51,6 +51,7 @@ const (
PasskeyGroup UiNodeGroup = "passkey"
IdentifierFirstGroup UiNodeGroup = "identifier_first"
CaptchaGroup UiNodeGroup = "captcha" // Available in OEL
+ SAMLGroup UiNodeGroup = "saml" // Available in OEL
)
func (g UiNodeGroup) String() string {