Пример #1
0
 /// <summary>
 /// Подключить JWT Token (versionName = "jwt")
 /// </summary>
 /// <param name="services"></param>
 /// <param name="xmlPath"></param>
 public static void AddSwaggerJWTTokenSecurityDefinitions(this IServiceCollection services, string xmlPath)
 {
     SwaggerGenDefinition.SwaggerJWTTokenStartupService(services, xmlPath, null, "jwt");
 }
Пример #2
0
 /// <summary>
 /// Подключить JWT Token и Basic Auth (versionName = "jwtbasic")
 /// </summary>
 /// <param name="services"></param>
 /// <param name="xmlPath"></param>
 /// <param name="swaggerInfo"></param>
 /// <param name="versionName"></param>
 public static void AddSwaggerAllSecurityDefinitions(this IServiceCollection services, string xmlPath, OpenApiInfo swaggerInfo = null, string versionName = "jwtbasic")
 {
     SwaggerGenDefinition.SwaggerAllSecurityStartupService(services, xmlPath, swaggerInfo, versionName);
 }
Пример #3
0
 /// <summary>
 /// Подключить Basic Auth (versionName = "basicauth")
 /// </summary>
 /// <param name="services"></param>
 /// <param name="xmlPath"></param>
 public static void AddSwaggerBasicAuthSecurityDefinitions(this IServiceCollection services, string xmlPath)
 {
     SwaggerGenDefinition.SwaggerBasicAuthStartupService(services, xmlPath, null, "basicauth");
 }