hi
Can you share full code or a test project to reproduce?
liming.ma@volosoft.com
Thanks.
hi
Request finished HTTP/2 GET https://localhost:44374/api/abp/application-configuration?includeLocalizationResources=false - 200 null application/json; charset=utf-8 6670.617ms
You can override this AbpApplicationConfigurationAppService to debug and see which method takes too much time.
Auth = await GetAuthConfigAsync(),
Features = await GetFeaturesConfigAsync(),
GlobalFeatures = await GetGlobalFeaturesConfigAsync(),
Localization = await GetLocalizationConfigAsync(options),
CurrentUser = GetCurrentUser(),
Setting = await GetSettingConfigAsync(),
MultiTenancy = GetMultiTenancy(),
CurrentTenant = GetCurrentTenant(),
Timing = await GetTimingConfigAsync(),
Clock = GetClockConfig(),
ObjectExtensions = _cachedObjectExtensionsDtoService.Get(),
ExtraProperties = new ExtraPropertyDictionary()
https://github.com/abpframework/abp/blob/rel-8.2/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationConfigurations/AbpApplicationConfigurationAppService.cs#L86-L123
hi
Users cannot be restricted from registering when they know the tenant name.
We can restrict switching tenants after external login, but they can still switch tenants before logging in
Thanks.
hi
Request finished HTTP/2 GET https://localhost:44374/api/abp/application-configuration?includeLocalizationResources=false - 200 null application/json; charset=utf-8 6670.617ms
Can you share a project? I will download and test it locally.
You can share it by Github or email.
Thanks.
hi
I didn't receive your mail.
Can you share it by https://wetransfer.com/
Thanks.
hi
If you want to bind List<AssessmentFileColumnDto> Columns from the querystring
Your querystring should be:
?Columns[0].ColumnName=Name1&Columns[0].From=1&Columns[0].To=5&Columns[1].ColumnName=Name2&Columns[1].From=6&Columns[1].To=10
public class PreviewFixedFileDto
{
public IRemoteStreamContent Content { get; set; }
public List<AssessmentFileColumnDto> Columns { get; set; }
}
public class AssessmentFileColumnDto
{
public string ColumnName { get; set; }
public int From { get; set; }
public int To { get; set; }
}
hi
Error is "UnAuthorized"
Please share the full logs.txt. Include the identity model and OpenIddict logs.
https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems
Thanks. liming.ma@volosoft.com
hi
You can use IPermissionDataSeeder to grant permissions to admin role.
var multiTenancySide = CurrentTenant.GetMultiTenancySide();
var permissionNames = (await PermissionDefinitionManager.GetPermissionsAsync())
.Where(p => p.MultiTenancySide.HasFlag(multiTenancySide))
.Where(p => !p.Providers.Any() || p.Providers.Contains(RolePermissionValueProvider.ProviderName))
.Select(p => p.Name)
.ToArray();
await PermissionDataSeeder.SeedAsync(
RolePermissionValueProvider.ProviderName,
"admin",
permissionNames,
tenantId
);
https://github.com/abpframework/abp/blob/rel-9.0/modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/PermissionDataSeedContributor.cs#L28-L40
https://github.com/abpframework/abp/blob/rel-9.0/modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/IPermissionDataSeeder.cs#L7
Yes, I will update the template code.
Thanks.
hi sinancondo
You can try running a Redis server in a local Docker container.
docker run -p 6379:6379 --name redis -d redis:alpine