What is your product version: 7.2.0 What is your product type: Angular What is product framework type: .Net Core
Hello,
I've enabled two factor authentication for a user. When logging into the UI it works fine as expected. However, when logging into the API I get an error with no means of resolving the issue.
Is this the intended behaviour for the framework or am I missing something?
What is your product version: 7.2.0 What is your product type: Angular What is product framework type: .Net Core
Hi there,
I am currently using ASP.NET Core Angular v7.2.0 and I noticed that there is a feature to enable Session Timeout.
https://docs.aspnetzero.com/en/aspnet-core-angular/v7.2.0/Features-Angular-Tenant-Settings
However, when I login as a tenant I do not see the same settings regarding session timeout. What do I need to do in order to see and enable the setting?
Thank you,
Hi Support Team, I have one concerning about External Hangfire background service.
I do able inject HostDbContext
in HangfireAppService
.
But how can I inject IRepositoryTenantTable
base on TenantId
, or perhaps TenantConnectionString
?
And how can I inject ICustomRepository
base on TenantId
, or perhaps TenantConnectionString
?
Implement of ICustomRepository has some function/methods that I would like to re-use instead of create new TenantDbContext
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
I am using a app notifier to send push notification to user and I want the user receive the notification in their language base on their setting on the website Since I can't localize the string on the UI Side since it is a web push, so I have to localize the message on the API side. However, the "L()" method do not respect user language in AppNotifier.
Here is code snap of my code inside Core.Notifications.AppNotifier:
public async Task SendReminderAsync(UserIdentifier user,
string message,
int txdID,
NotificationSeverity severity = NotificationSeverity.Warn)
{
// Prepare data for in-app notification
var notificationData = new MessageNotificationData(message);
// Prepare data for Web Push Notification
var webPushTitle = L("Reminder");
var webPushMessage = message;
notificationData["WebPushNotificationData"] = new WebPushNotificationData(){
Type = AppNotificationNames.Reminder,
Title = webPushTitle,
Options = new Dictionary<string, string>()
{
{"message", webPushMessage},
{"userId", user.UserId.ToString()},
{"txdID", txdID.ToString()},
{"LocalizeTaken", L("Taken")},
{"LocalizeDelay", L("Delay15Mins")},
{"utcSentTime", DateTime.UtcNow.ToString()+" UTC"}
}
};
// Publish the notification
await _notificationPublisher.PublishAsync(
AppNotificationNames.Reminder,
notificationData,
userIds: new[] { user });
}
For now, the L() only translate token to the default language. How I can make the L("") in the code do translation the token base on user Id?
What is your product version? -> 8.1 What is your product type (Angular or MVC)? -> Angular What is product framework type (.net framework or .net core)? -> .net core
Hello,
I need to use the same class (IIdeasMessageRepository) in two different modules.
The above image shows where IIdeasMessageRepository is originally registered for dependency injection.
But, I also need to use IIdeasMessageRepository in this project.
When I don't register the dependency in this module I get this exception.
Once I register the depedency.
I get this exception instead and sometimes I get the duplicate registration error.
How can I use/register the same class in two different modules without getting an exception?
Please answer the following questions before submitting an issue.
I am using capacitor (https://capacitorjs.com/) to wrap the angular frontend. The first login screen can load without problem. But I find out the angular frontend is not able to save any cookies. Therefore, I am not able to login or change the tenant.
The capacitor wrapper is working fine on Android. Cookies can be saved normally. This only happened on iOS.
Any suggestion on wrapping the ABP zero angular app in the capacitor?
Thank you.
Hi,
I added a new theme following the official documentation. Everything is working fine in my local dev environment. However, in production mode, the bootstrap css doesn't load up. I already modified the bundles.json file. Any suggestion on this?
Thanks
I have a custom AppSettingProvider as the code below:
public class PortalSettingProvider : SettingProvider
{
private readonly IConfigurationRoot _appConfiguration;
public IdeasSettingProvider(IAppConfigurationAccessor configurationAccessor)
{
_appConfiguration = configurationAccessor.Configuration;
}
public override IEnumerable<SettingDefinition> GetSettingDefinitions(SettingDefinitionProviderContext context)
{
return GetDemographicPersonalInfoSettings().Union(GetDemographicOtherSettings())
.Union(GetPaymentSettings())
}
....................
private IEnumerable<SettingDefinition> GetPaymentSettings()
{
var paymentSettingsGroup = new SettingDefinitionGroup("Ideas.PatientPortal.Payment", L("PaymentSettings"));
return new[] {
new SettingDefinition(PatientPortalSettings.Payment.StripePublicKey,
"", scopes: SettingScopes.Tenant, isVisibleToClients: true, group: paymentSettingsGroup),
new SettingDefinition(PatientPortalSettings.Payment.StripePrivateKey,
"", scopes: SettingScopes.Tenant, isVisibleToClients: false, group: paymentSettingsGroup),
new SettingDefinition(PatientPortalSettings.Payment.PaymentCurrency,
"", scopes: SettingScopes.Tenant, isVisibleToClients: true, group: paymentSettingsGroup),
new SettingDefinition(PatientPortalSettings.Payment.CultureInfo,
"", scopes: SettingScopes.Tenant, isVisibleToClients: true, group: paymentSettingsGroup),
};
}
.............................
I add then custom provider to the Framework like this:
........
//Adding setting providers
Configuration.Settings.Providers.Add<AppSettingProvider>();
Configuration.Settings.Providers.Add<PortalSettingProvider>();
........
I don't want my Payment.StripePrivateKey expose to client, so I set the isVisibleToClients to false, however I still get this value in API call.
What I should do to hide the sensitive info from unauthorized user?
Hi, I started to move my existing project to newer framework (V.8.8). But when i tried to create a new project under the solution and move my existing cs files in it, the Apis are missing from the Swagger. Any steps that I have missed? Thanks