Instead of reading rsms.me, how about changing the method so that ABP downloads rsms.me?
This is exactly what it should be. We are testing the situation and considering using the related CSS as a static file. @sumeyye.kurtulus working on that.
Regards.
Hi, to add more than 10 custom-code placeholders, you should edit templates and add the relevant placeholder for the related templates. Here are the documents that you can check to see how to do that:
- https://abp.io/docs/latest/suite/customizing-the-generated-code#adding-new-custom-hook-points-changing-their-places-1
- https://abp.io/docs/latest/suite/editing-templates
I quoted the documentation you linked me.... adding more hook points does nothing. They are ignored.
We will test this and write back to you as soon as possible.
I wanted to let you know that embedding the resources in the project file has solved the issue. Thanks so much for your time and assistance in troubleshooting this—it’s greatly appreciated!
Thank you 🙏
Hi
Just following up on this ticket.
Thanks
Hi, I will test it and try to write you back asap.
Hi, we are currently testing according to your steps and let you know asap.
Best regards.
Hi, this is the expected behavior (https://abp.io/docs/latest/modules/account-pro#social-account-security-setting):
Users who register via both local registration and external/social login using the same email address will be required to enter their local password on the first external/social login.
You can disable this option if you want.
Hi, you need to create a custom event handler for that purpose. Please apply the following steps:
using System.Threading.Tasks;
using OpenIddict.Server;
namespace MySolution;
public class SignOutEventHandler : IOpenIddictServerHandler<OpenIddictServerEvents.ProcessSignOutContext>
{
public static OpenIddictServerHandlerDescriptor Descriptor { get; }
= OpenIddictServerHandlerDescriptor.CreateBuilder<OpenIddictServerEvents.ProcessSignOutContext>()
.UseSingletonHandler<SignOutEventHandler>()
.SetOrder(100_000)
.SetType(OpenIddictServerHandlerType.Custom)
.Build();
public ValueTask HandleAsync(OpenIddictServerEvents.ProcessSignOutContext context)
{
//your logic...
return ValueTask.CompletedTask;
}
}
public class MySolutionHttpApiHostModule : AbpModule
{
public override void PreConfigureServices(ServiceConfigurationContext context)
{
//...
PreConfigure<OpenIddictServerBuilder>(serverBuilder =>
{
serverBuilder.AddEventHandler(SignOutEventHandler.Descriptor);
});
//...
}
}
SignOutEventHandler class's HandleAsync method trigger after every signout request.Hi again, I have checked your project and found the problem. Everything you did was correct and necessary, however, it seems you missed setting the related localization files as EmbeddedResource. This is required for the production environment.
You should add the following lines to the *.Domain.Shared.csproj file, and then it should work as expected:
<ItemGroup>
<EmbeddedResource Include="Localization\ManasotaErp\*.json" />
<Content Remove="Localization\ManasotaErp\*.json" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Localization\AbpIdentity\*.json" />
<Content Remove="Localization\AbpAccount\*.json" />
</ItemGroup>
Best regards.
Update: I got your project and checking currently. I will write you back asap.
Thanks, the issue is resolved. So, for each module, if I want to use FullAuditedEntityWithUser or establish a relationship with IdentityUser, I need to follow the same steps, correct?
Yes, that's right 👍Because, you need to have the relationship for the IdentityUser entity.
I'm closing the question since your problem is resolved. Best regards.