Add configurations and update packages
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using GerstITS.Web.Api.Swagger;
|
||||
using Microsoft.Net.Http.Headers;
|
||||
using Microsoft.OpenApi.Models;
|
||||
|
||||
namespace BakeTronic.Web.Api.Configurations
|
||||
{
|
||||
internal sealed class OpenApiSecuritySchemeConfiguration : IOpenApiSecuritySchemeConfiguration
|
||||
{
|
||||
#region Properties
|
||||
|
||||
public bool AllowAnonymous { get; }
|
||||
public string HttpHeaderKey { get; }
|
||||
public string Scheme { get; }
|
||||
public SecuritySchemeType SchemeType { get; }
|
||||
public ParameterLocation ParameterLocation { get; }
|
||||
public string Description { get; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public OpenApiSecuritySchemeConfiguration()
|
||||
{
|
||||
AllowAnonymous = false;
|
||||
HttpHeaderKey = HeaderNames.Authorization;
|
||||
Scheme = "Bearer";
|
||||
SchemeType = SecuritySchemeType.Http;
|
||||
ParameterLocation = ParameterLocation.Header;
|
||||
Description = "Authorization header using the Bearer scheme (Value: Bearer {{access_token}}).";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user