From 3554406aa5d07e0f4888dc3332b52d7b307242d4 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 10 May 2022 10:24:18 +0200 Subject: [PATCH] root: fix duplicate enum in api scheme Signed-off-by: Jens Langhammer --- authentik/root/settings.py | 1 + schema.yml | 31 +++++++++++++------------------ 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/authentik/root/settings.py b/authentik/root/settings.py index 342772b6a..22d5dd805 100644 --- a/authentik/root/settings.py +++ b/authentik/root/settings.py @@ -166,6 +166,7 @@ SPECTACULAR_SETTINGS = { "PolicyEngineMode": "authentik.policies.models.PolicyEngineMode", "ProxyMode": "authentik.providers.proxy.models.ProxyMode", "PromptTypeEnum": "authentik.stages.prompt.models.FieldTypes", + "LDAPAPIAccessMode": "authentik.providers.ldap.models.APIAccessMode", }, "ENUM_ADD_EXPLICIT_BLANK_NULL_CHOICE": False, "POSTPROCESSING_HOOKS": [ diff --git a/schema.yml b/schema.yml index 07b17f4fe..e6e8e989c 100644 --- a/schema.yml +++ b/schema.yml @@ -20068,11 +20068,6 @@ components: - authentik.core.auth.TokenBackend - authentik.sources.ldap.auth.LDAPBackend type: string - BindModeEnum: - enum: - - direct - - cached - type: string BindingTypeEnum: enum: - REDIRECT @@ -22311,6 +22306,11 @@ components: the currently selected context. required: - name + LDAPAPIAccessMode: + enum: + - direct + - cached + type: string LDAPOutpostConfig: type: object description: LDAPProvider Serializer @@ -22356,9 +22356,9 @@ components: for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber search_mode: - $ref: '#/components/schemas/SearchModeEnum' + $ref: '#/components/schemas/LDAPAPIAccessMode' bind_mode: - $ref: '#/components/schemas/BindModeEnum' + $ref: '#/components/schemas/LDAPAPIAccessMode' required: - application_slug - bind_flow_slug @@ -22509,9 +22509,9 @@ components: type: string readOnly: true search_mode: - $ref: '#/components/schemas/SearchModeEnum' + $ref: '#/components/schemas/LDAPAPIAccessMode' bind_mode: - $ref: '#/components/schemas/BindModeEnum' + $ref: '#/components/schemas/LDAPAPIAccessMode' required: - assigned_application_name - assigned_application_slug @@ -22571,9 +22571,9 @@ components: for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber search_mode: - $ref: '#/components/schemas/SearchModeEnum' + $ref: '#/components/schemas/LDAPAPIAccessMode' bind_mode: - $ref: '#/components/schemas/BindModeEnum' + $ref: '#/components/schemas/LDAPAPIAccessMode' required: - authorization_flow - name @@ -27337,9 +27337,9 @@ components: for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber search_mode: - $ref: '#/components/schemas/SearchModeEnum' + $ref: '#/components/schemas/LDAPAPIAccessMode' bind_mode: - $ref: '#/components/schemas/BindModeEnum' + $ref: '#/components/schemas/LDAPAPIAccessMode' PatchedLDAPSourceRequest: type: object description: LDAP Source Serializer @@ -30160,11 +30160,6 @@ components: - expression - name - scope_name - SearchModeEnum: - enum: - - direct - - cached - type: string SelectableStage: type: object description: Serializer for stages which can be selected by users