From b35d9ae8b0379b344a36ae3ab3fe1624103767ea Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 26 Apr 2021 14:45:14 +0200 Subject: [PATCH] outposts: fix type not being configurable Signed-off-by: Jens Langhammer --- authentik/outposts/api/outposts.py | 1 + swagger.yaml | 6 ++++++ web/src/pages/outposts/OutpostForm.ts | 5 +++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/authentik/outposts/api/outposts.py b/authentik/outposts/api/outposts.py index dbe2595af..af0941eda 100644 --- a/authentik/outposts/api/outposts.py +++ b/authentik/outposts/api/outposts.py @@ -24,6 +24,7 @@ class OutpostSerializer(ModelSerializer): fields = [ "pk", "name", + "type", "providers", "providers_obj", "service_connection", diff --git a/swagger.yaml b/swagger.yaml index 254c82cff..c27cea7ce 100755 --- a/swagger.yaml +++ b/swagger.yaml @@ -15959,6 +15959,12 @@ definitions: title: Name type: string minLength: 1 + type: + title: Type + type: string + enum: + - proxy + - ldap providers: type: array items: diff --git a/web/src/pages/outposts/OutpostForm.ts b/web/src/pages/outposts/OutpostForm.ts index af3d3cbd2..af9b7c3d7 100644 --- a/web/src/pages/outposts/OutpostForm.ts +++ b/web/src/pages/outposts/OutpostForm.ts @@ -1,4 +1,4 @@ -import { Outpost, OutpostsApi, ProvidersApi } from "authentik-api"; +import { Outpost, OutpostsApi, OutpostTypeEnum, ProvidersApi } from "authentik-api"; import { t } from "@lingui/macro"; import { customElement, property } from "lit-element"; import { html, TemplateResult } from "lit-html"; @@ -50,7 +50,8 @@ export class OutpostForm extends Form { ?required=${true} name="type">