1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

SwaggerUI - persist authorization in dev mode (#3655)

This commit is contained in:
Thomas Rittson 2024-01-12 08:14:12 +10:00 committed by GitHub
parent db4d7aa609
commit 297cc8c8e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
});
}