Syntax err updated.
This commit is contained in:
parent
3c90301bbb
commit
913ac777fc
@ -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)
|
||||||
|
@ -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();
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user