From 297cc8c8e12a2dea9003adadac8a4279451c120d Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Fri, 12 Jan 2024 08:14:12 +1000 Subject: [PATCH] SwaggerUI - persist authorization in dev mode (#3655) --- src/Api/Startup.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Api/Startup.cs b/src/Api/Startup.cs index c92e764c6f..b82b2e1c27 100644 --- a/src/Api/Startup.cs +++ b/src/Api/Startup.cs @@ -288,6 +288,12 @@ public class Startup "Bitwarden Public API"); config.OAuthClientId("accountType.id"); config.OAuthClientSecret("secretKey"); + + // Persist authorization on page refresh - for development use only + if (Environment.IsDevelopment()) + { + config.EnablePersistAuthorization(); + } }); }