Syntax err updated.
This commit is contained in:
parent
3c90301bbb
commit
913ac777fc
@ -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)
|
||||
|
@ -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();
|
||||
|
@ -236,6 +236,7 @@ static class CustomExtensionsMethods
|
||||
Url = new Uri("https://microsoft.com/")
|
||||
}
|
||||
});
|
||||
|
||||
options.AddSecurityDefinition("oauth2", new OpenApiSecurityScheme
|
||||
{
|
||||
Type = SecuritySchemeType.OAuth2,
|
||||
|
Loading…
x
Reference in New Issue
Block a user