I can access the public api, but How to get access token to access protected api?
OK, Thanks~
I resolved it , thanks very much~
I get it, Thanks ~
Yes, Https with domain name is works fine at internet,such as https://xxx.mydomain.com, But my project need work on a LAN IP, If use HTTPS such as https://192.168.11.11:44300? Is there a way to generate a self-signed SSL certificate and the browser trusts it not to prompt a warning?
Is this property must same as address of listening?
Can I comment the ConfigureHealthChecks(context);
to close the health check? Will there be a negative impact on the system?
public override void ConfigureServices(ServiceConfigurationContext context)
{
var configuration = context.Services.GetConfiguration();
var hostingEnvironment = context.Services.GetHostingEnvironment();
if (!configuration.GetValue<bool>("App:DisablePII"))
{
Microsoft.IdentityModel.Logging.IdentityModelEventSource.ShowPII = true;
}
ConfigureUrls(configuration);
ConfigureConventionalControllers();
ConfigureAuthentication(context, configuration);
ConfigureSwagger(context, configuration);
ConfigureCache(configuration);
ConfigureVirtualFileSystem(context);
ConfigureDataProtection(context, configuration, hostingEnvironment);
ConfigureDistributedLocking(context, configuration);
ConfigureCors(context, configuration);
ConfigureExternalProviders(context);
//ConfigureHealthChecks(context);
Configure<PermissionManagementOptions>(options =>
{
options.IsDynamicPermissionStoreEnabled = true;
});
}
Thanks~
Thanks ~~