Ends in:
7 DAYS
20 HRS
24 MIN
10 SEC
Ends in:
7 D
20 H
24 M
10 S

Activities of "sukeshchand"

Thanks for the help.

I found a way to do it. Override/Customize the SiginIn manager and implement the custom logic.

https://docs.abp.io/en/abp/2.9/How-To/Customize-SignIn-Manager

Hi,

I wanted only certain users/roles can able login to backoffice (https://localhost/Account/Login), but the all user must be able to sign in using api auth, Is there any standard way to achive this in ABP IO?

Thanks. sukesh chand

Hi,

Thanks for the replay,

Your replay is infomative,

The CustomEmailConfirmationTokenProvider can be added from the ConfigureServices.

public void ConfigureServices(IServiceCollection services)
{
    services.AddIdentity<ApplicationUser, IdentityRole>(options =>
    {
        options.Tokens.EmailConfirmationTokenProvider = "CustomEmailConfirmation";
    })
    .AddEntityFrameworkStores<AbpDbContext>()
    .AddDefaultTokenProviders()
    .AddTokenProvider
    <CustomEmailConfirmationTokenProvider<ApplicationUser>>("CustomEmailConfirmation");        
    }
}

But in the case of ABP.IO the IdentityServer and related properties are is configured in the Inherited ABP module

ProjectABPModule: AbpModule
{
public override void OnApplicationInitialization(ApplicationInitializationContext context)
    {
    **app.UseIdentityServer();**

My question is how do I change/configure CustomEmailConfirmationTokenProvider from this AbpModule?

Is there any built-in functionality available in ABO.IO to verify the email address by sending a verification code instead of a verification URL, Also verify the email before saved into the database. (save only if verification got successful)

I can see some functions available to verify the email by using the verification link. But which is not really works with mobile app development.

_userManager.GenerateEmailConfirmationTokenAsync(user1) var verified = _userManager.ConfirmEmailAsync(user1, token);

The requirement is for the mobile app backend.

  • ABP Framework version: v4.4.2
Showing 1 to 4 of 4 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06