Releases: Kros-sk/Kros.AspNetCore
Releases · Kros-sk/Kros.AspNetCore
Kros.Swagger.Extensions 3.1.1
Changes
- Update packages.
Kros.ProblemDetails.Extensions 3.0.1
Changes
- Update packages.
Kros.MediatR.Extensions 3.0.1
Changes
- Update packages.
Kros.MassTransit.AzureServiceBus 3.0.2
Changes
- Update packages.
Kros.AspNetCore 4.1.2
Changes
- Update packages.
Kros.ApplicationInsights.Extensions 3.0.3
Changes
- Update packages.
appinsights-v3.0.2
Kros.Swagger.Extensions 3.1.0
Support authorization in Swagger
SwaggerDocumentation
section is no longer required in configuration (appsettings.json
).- New class
SwaggerSettings
for settings is created. It inheritsOpenApiInfo
, so everything what worked before still works. It just introduces new properties to properly setup authorization. - If client sets up authorization in configuration, it must also add some operation filter, which will add security requirement for operations which will use authorization.
- No global operation filter is setup. Until now, there was global operation filter added and so all operations (even anonymous) were using authorization.
- there are 2 operation filters defined, which can be used in when configuring client:
ClearSecurityRequirementsFromAnonymousEndpoints
: this is suitable for APIs, where by default all endpoints are authorized and the anonymous ones are marked withAllowAnonymous
attribute.SetSecurityRequirementsToAuthorizedEndpoints
: this is suitable for APIs, where by default all endpoints are anonymous and the authorized ones are marked withAuthorize
attribute.