1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 17:42:49 -05:00

Fix swagger errors (#2277)

This commit is contained in:
Oscar Hinton
2022-09-15 17:14:35 +02:00
committed by GitHub
parent 287dc2e06b
commit 3a8f344202
3 changed files with 4 additions and 3 deletions

View File

@ -28,7 +28,7 @@ public static class ServiceCollectionExtensions
});
config.SwaggerDoc("internal", new OpenApiInfo { Title = "Bitwarden Internal API", Version = "latest" });
config.AddSecurityDefinition("OAuth2 Client Credentials", new OpenApiSecurityScheme
config.AddSecurityDefinition("oauth2-client-credentials", new OpenApiSecurityScheme
{
Type = SecuritySchemeType.OAuth2,
Flows = new OpenApiOAuthFlows
@ -52,7 +52,7 @@ public static class ServiceCollectionExtensions
Reference = new OpenApiReference
{
Type = ReferenceType.SecurityScheme,
Id = "OAuth2 Client Credentials"
Id = "oauth2-client-credentials"
},
},
new[] { "api.organization" }