Syntax err updated.

This commit is contained in:
Onurkan Bakırcı 2022-03-21 18:02:47 +03:00 committed by GitHub
parent 3c90301bbb
commit 913ac777fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 16 deletions

View File

@ -242,10 +242,9 @@ public static class CustomExtensionMethods
Name = "Microsoft License", Name = "Microsoft License",
Url = new Uri("https://microsoft.com/license") Url = new Uri("https://microsoft.com/license")
} }
});
}); });
return services; return services;
} }
public static IServiceCollection AddIntegrationServices(this IServiceCollection services, IConfiguration configuration) public static IServiceCollection AddIntegrationServices(this IServiceCollection services, IConfiguration configuration)

View File

@ -95,20 +95,20 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API
options.IncludeXmlComments(xmlComments); options.IncludeXmlComments(xmlComments);
options.SwaggerDoc("v1", new OpenApiInfo options.SwaggerDoc("v1", new OpenApiInfo
{ {
Title = "Microsoft - Identity HTTP API", Title = "Microsoft - Identity HTTP API",
Version = "v1", Version = "v1",
Description = "The Identity Service HTTP API", Description = "The Identity Service HTTP API",
TermsOfService = new Uri("https://microsoft.com/"), TermsOfService = new Uri("https://microsoft.com/"),
Contact = new OpenApiContact Contact = new OpenApiContact
{ {
Name = "Microsoft Contact", Name = "Microsoft Contact",
Url = new Uri("https://microsoft.com/") Url = new Uri("https://microsoft.com/")
}, },
License = new OpenApiLicense License = new OpenApiLicense
{ {
Name = "Microsoft License", Name = "Microsoft License",
Url = new Uri("https://microsoft.com/") Url = new Uri("https://microsoft.com/")
} }
}); });
var container = new ContainerBuilder(); var container = new ContainerBuilder();

View File

@ -236,6 +236,7 @@ static class CustomExtensionsMethods
Url = new Uri("https://microsoft.com/") Url = new Uri("https://microsoft.com/")
} }
}); });
options.AddSecurityDefinition("oauth2", new OpenApiSecurityScheme options.AddSecurityDefinition("oauth2", new OpenApiSecurityScheme
{ {
Type = SecuritySchemeType.OAuth2, Type = SecuritySchemeType.OAuth2,