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",
Url = new Uri("https://microsoft.com/license")
}
});
});
return services;
}
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.SwaggerDoc("v1", new OpenApiInfo
{
Title = "Microsoft - Identity HTTP API",
Version = "v1",
Description = "The Identity Service HTTP API",
TermsOfService = new Uri("https://microsoft.com/"),
Contact = new OpenApiContact
{
Name = "Microsoft Contact",
Url = new Uri("https://microsoft.com/")
},
License = new OpenApiLicense
{
Name = "Microsoft License",
Url = new Uri("https://microsoft.com/")
}
Title = "Microsoft - Identity HTTP API",
Version = "v1",
Description = "The Identity Service HTTP API",
TermsOfService = new Uri("https://microsoft.com/"),
Contact = new OpenApiContact
{
Name = "Microsoft Contact",
Url = new Uri("https://microsoft.com/")
},
License = new OpenApiLicense
{
Name = "Microsoft License",
Url = new Uri("https://microsoft.com/")
}
});
var container = new ContainerBuilder();

View File

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