Hi,
I am using Aspnet Zero MVC/jQuery.
Please could you give me some guidance as to how I can apply versioning to my dynamic web api.
Many thanks
Hi,
I am able to add a permission to a user using method UserManager.GrantPermissionAsync
However, I cannot see a way to remove a permission from a user. Can you advise please?
Regards
Hi,
I have recently upgraded from Abp v3.8.3 to the latest version.
I am finding that client side localization is now returning the unicode representation of the apostrophe character rather than the actual character. Is there a work around for this, as this characeter is used extensively in our system.
Many thanks
Hi,
I am using the Abp Web Api in an external app. When authenticating, using the 'Authenticate' request, I recieve the same response regardless as to whether the ShouldChangePasswordOnNextLogin flag is set.
Is there an easy way to determine, at login, whether this flag is set?
Also, could you give me some guidance as to how I would change the user password using the Web api.
Many thanks
Hi,
I am trying to view the Swagger UI and am getting a 500 error. Please could you give me some guidance as to how I can debug this issue.
I have not changed the cofiguration from the default:
private void ConfigureSwaggerUi() { Configuration.Modules.AbpWebApi().HttpConfiguration .EnableSwagger(c => { c.SingleApiVersion("v1", "ippex.IppexCloud.WebApi"); c.ResolveConflictingActions(apiDescriptions => apiDescriptions.First()); }) .EnableSwaggerUi(c => { c.InjectJavaScript(Assembly.GetAssembly(typeof(IppexCloudWebApiModule)), "ippex.IppexCloud.WebApi.Scripts.Swagger-Custom.js"); }); }
I am using ABP v3.8.3 and Aspnet Zero v4 with MVC/Jquery
Many thanks
Hi,
I have a requirement to get localized strings on specific languages. In my MVC application, this is achieved successfully by using the following:
var cultureInfo = new CultureInfo(languageName, true);
var str = LocalizationHelper.GetString(IppexCloudConsts.LocalizationSourceName, "AboutUs", cultureInfo);
I now have the same requirment within an Azure Function. I have set this up to run ABP. However, the code above now simply returns the label rather than the localized string. Without the culture info parameter, I am still getting localized values (using the default culture within which the function is running).
ABP is bootstrapped into the function using the following code:
public static class Bootstrapper
{
private static bool IsStarted = false;
private static readonly object _syncLock = new object();
public static AbpBootstrapper AbpBootstrapper { get; private set; }
public static void Startup()
{
if (!IsStarted)
{
lock (_syncLock)
{
if (!IsStarted)
{
var bootstrapper = AbpBootstrapper.Create<IppexCloudAzureFunctionsModule>();
bootstrapper.Initialize();
AbpBootstrapper = bootstrapper;
IsStarted = true;
}
}
}
}
}
My module code is as follows:
[DependsOn(typeof(IppexCloudDataModule), typeof(IppexCloudUploadApplicationModule), typeof(IppexCloudAzureFileStorageModule))]
public class IppexCloudAzureFunctionsModule : AbpModule
{
public override void PreInitialize()
{
Database.SetInitializer<IppexCloudDbContext>(null);
}
public override void Initialize()
{
IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());
}
}
Hi,
We have a requirement to use email address as User Name.
However, the User Name seems to be restricted to alpha numeric characters only, hence preventing email addresses containing hyphens.
What is the reason for this? Is it possible to override this restriction?
Many thanks.
Hi,
I am running Aspnet Zero v4.0 with Abp 3.5 I am hosting my app on Azure.
I am seeing the entry below many times in my hosted Azure log file:
DEBUG 2018-07-09 08:48:43,729 [17 ] Abp.Auditing.WebClientInfoProvider - System.Net.Sockets.SocketException (0x80004005): No such host is known at System.Net.Dns.GetAddrInfo(String name) at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) at System.Net.Dns.GetHostAddresses(String hostNameOrAddress) at Abp.Auditing.WebClientInfoProvider.GetClientIpAddress()
However, I do not see this message when running locally.
Hi,
I successfully managed to increase the UserName field length based on advice from a previous post, as follows:
public class User : AbpUser<User>
{
...
[StringLength(256)]
public override string UserName { get; set; }
...
}
However, since upgrading to ABP v3.5, I am unable to migrate my database. This seems to be due to the fact that UserAccount.UserLength now has a maximum length of 32 and the migration would cause its contents to truncate.
How can I increase the MaxLength of UserAccount.UserName ? I have tried creating a custom UserAccount class and overriding UserName with the required MaxLength, but this does not work.
Hi,
I have a requirement to add additional claims to ClaimsIdentity when the user logs in. I have worked out how to do this, and all is fine.
The problem I have is when the user enters the system via a persisted cookie. I cannot seem to find anywhere in the code where I can add the additional claims.
I do not want to store these claims within the cookie, as they could potentially change over time. I would simply like to add them every time the user creates a new session (via login or persisted cookie).
Many thanks.