diff --git a/docs/documentation/rest-api/swagger.yaml b/docs/documentation/rest-api/swagger.yaml index 12ef021..20f5c87 100644 --- a/docs/documentation/rest-api/swagger.yaml +++ b/docs/documentation/rest-api/swagger.yaml @@ -512,6 +512,8 @@ definitions: description: The source of the user. This field is optional. enum: - db + - ldap + - oauth example: db type: string required: diff --git a/internal/app/api/core/assets/doc/v1_swagger.json b/internal/app/api/core/assets/doc/v1_swagger.json index ce4b180..02518b9 100644 --- a/internal/app/api/core/assets/doc/v1_swagger.json +++ b/internal/app/api/core/assets/doc/v1_swagger.json @@ -2216,7 +2216,9 @@ "description": "The source of the user. This field is optional.", "type": "string", "enum": [ - "db" + "db", + "ldap", + "oauth" ], "example": "db" } diff --git a/internal/app/api/core/assets/doc/v1_swagger.yaml b/internal/app/api/core/assets/doc/v1_swagger.yaml index e535ef4..5b6cd7d 100644 --- a/internal/app/api/core/assets/doc/v1_swagger.yaml +++ b/internal/app/api/core/assets/doc/v1_swagger.yaml @@ -561,6 +561,8 @@ definitions: description: The source of the user. This field is optional. enum: - db + - ldap + - oauth example: db type: string required: diff --git a/internal/app/api/v1/models/models_user.go b/internal/app/api/v1/models/models_user.go index c04f30d..142bdd9 100644 --- a/internal/app/api/v1/models/models_user.go +++ b/internal/app/api/v1/models/models_user.go @@ -13,7 +13,7 @@ type User struct { // The email address of the user. This field is optional. Email string `json:"Email" binding:"omitempty,email" example:"test@test.com"` // The source of the user. This field is optional. - Source string `json:"Source" binding:"oneof=db" example:"db"` + Source string `json:"Source" binding:"oneof=db ldap oauth" example:"db"` // The name of the authentication provider. This field is read-only. ProviderName string `json:"ProviderName,omitempty" readonly:"true" example:""` // If this field is set, the user is an admin.