Browse Source

Fix SecurityDefinitions in Swagger helper

According to OAS2 the key name in "security" should match with
the key name in "SecurityDefinitions" to apply intended security
to specified scope.
pull/241/head
Mohammad Javad 8 years ago
parent
commit
d96a0c7900
  1. 2
      src/Squidex/Pipeline/Swagger/SwaggerHelper.cs

2
src/Squidex/Pipeline/Swagger/SwaggerHelper.cs

@ -72,7 +72,7 @@ namespace Squidex.Pipeline.Swagger
document.Host = context.Request.Host.Value;
}
document.SecurityDefinitions.Add("OAuth2", CreateOAuthSchema(urlOptions));
document.SecurityDefinitions.Add(Constants.SecurityDefinition, CreateOAuthSchema(urlOptions));
return document;
}

Loading…
Cancel
Save