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:
@ -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" }
|
||||
|
Reference in New Issue
Block a user