From ca4062e2d5b101f3b6133a4569b22a8192285fc0 Mon Sep 17 00:00:00 2001
From: Marco Holz <marco.holz@fitko.de>
Date: Wed, 25 May 2022 11:42:00 +0000
Subject: [PATCH] Configurable allowAuthentication per API

---
 docs/apis/routing-api.mdx | 2 +-
 src/views/ApiSpec.js      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/apis/routing-api.mdx b/docs/apis/routing-api.mdx
index 85f6cabd7..cb9d5fb7d 100644
--- a/docs/apis/routing-api.mdx
+++ b/docs/apis/routing-api.mdx
@@ -5,4 +5,4 @@ hide_table_of_contents: true
 
 import ApiSpec from '@views/ApiSpec'
 
-<ApiSpec gitlabProjectId={"44"} path={"routing-api"} artifact={"routing-api.yaml"} version={"*"} includePrerelease={true} />
+<ApiSpec gitlabProjectId={"44"} path={"routing-api"} artifact={"routing-api.yaml"} version={"*"} includePrerelease={true} allowAuthentication={"false"} />
diff --git a/src/views/ApiSpec.js b/src/views/ApiSpec.js
index 1a41aa6df..ca33ae2d8 100644
--- a/src/views/ApiSpec.js
+++ b/src/views/ApiSpec.js
@@ -50,7 +50,7 @@ export default function ApiSpec(props) {
               show-header="false"
               show-components="false"
               allow-spec-file-load="false"
-              allow-authentication="false"
+              allow-authentication={props.allowAuthentication || "true"}
               info-description-headings-in-navbar="false"
               allow-try="false"
               primary-color="#11171a"
-- 
GitLab