Releases: Kros-sk/Kros.AspNetCore
Releases · Kros-sk/Kros.AspNetCore
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.
Kros.AspNetCore 4.1.1
Kros.AspNetCore 4.1.0
Kros.Swagger.Extensions 3.0.1
Fixes
- Could not connect to Azure Service Bus with standard connection string. By @Mikado3780 in #194.