Starts in:
2 DAYS
5 HRS
18 MIN
33 SEC
Starts in:
2 D
5 H
18 M
33 S

Activities of "Spospisil"

At the top of the DBContext class are the following class attributes which were put there by the generated ABP solution. With all the ABP module tables being in the one Host DB do I need to also put attribute lines in for each DBContext interface's from all the other modules as well?

[ReplaceDbContext(typeof(IIdentityProDbContext))]
[ReplaceDbContext(typeof(ISaasDbContext))]
[ConnectionStringName("Default")]

This below link in the documentation ended up being the solution I went with to display a list of tenant users based on the selected tenant in the screenshots tenant dropdown.

https://docs.abp.io/en/abp/latest/Multi-Tenancy#change-the-current-tenant

Hi,

Yes I need a way to take the tenant guid value as selected by the dropdown (highlighted in red) and have the list of users for that tenant display in the list. However, I would like to use the IdentityUserAppService (Volo.Abp.Identity.Pro.Application project) or extend this class and/or it's existing UserRepository to select users from the underlying database that are for the selected tenant

Screenshot included

Hi,

I'm a little confused. In what way does the EmailSendDemo actually use the ABP framework? There are no references to any of the ABP framework libraries and the code uses base the .net system.net.mail library directly.

The good news though is that I've validated I can send an email within our network using the smtp settings I'm specifying, however I still do not know why I can't use the Volo.Abp.Emailing to send an email nor can I actually step through it's code as described above.

Hi,

All I'm trying to do is to step through the Volo.Abp.Emailing source code to determine what the core issue is as to why my web project cannot send a 'forgot my password' email. I don't need to override any service, just trying to troubleshoot why email is not being sent.

When I have tried manually grabbing the Volo.Abp.Emailing source code from github and adding a project reference to it in my ABP generated source code for a MVC project, it does not step into the source and rather just runs the line of code without stepping into it's source.

Please advise.

Hi,

I get the following error when I run the abp add-package Volo.Abp.Emailing --with-source-code --add-to-solution-file comma

[09:54:36 INF] Successfully installed. [09:54:36 INF] Downloading source code of Volo.Abp.Emailing [09:54:36 INF] Version: 4.4.2 [09:54:36 INF] Output folder: C:\Projects\TestWEB\src\TestWebSaas\packages\Volo.Abp.Emailing [09:54:36 ERR] Package is not found or downloadable! System.Exception: Package is not found or downloadable! at Volo.Abp.Cli.ProjectBuilding.NugetPackageInfoProvider.GetAsync(String name) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\NugetPackageInfoProvider.cs:line 41 at Volo.Abp.Cli.ProjectBuilding.NugetPackageProjectBuilder.GetPackageInfoAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\NugetPackageProjectBuilder.cs:line 107 at Volo.Abp.Cli.ProjectBuilding.NugetPackageProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\NugetPackageProjectBuilder.cs:line 46

Below is my overridden OnPostAync method. The .IsAuthenticated is returning true when I supply the improper credentials now. Please tell me how this code block should look like for me to interrogate the result of the base.OnPostAsync method and to determine if authentication was successful or not so I can redirect the application to the appropriate page.

Thanks.

public override async Task<IActionResult> OnPostAsync(string action)
{
    ReturnUrl = "../HostDashboard";

    var result = await base.OnPostAsync(action);

    var user = await GetIdentityUser(LoginInput.UserNameOrEmailAddress);

    if (user != null)
    {
        using (CurrentPrincipalAccessor.Change(await SignInManager.CreateUserPrincipalAsync(user)))
        {
            if (CurrentUser.IsAuthenticated)
            {
                return RedirectToPage(ReturnUrl);
            }
        }
    }

    return Page();
}

This is my ConfigureAuthentication method

private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
{
    context.Services.AddAuthentication(options =>
        {
        })
        .AddCookie("Cookies", options =>
        {
            options.ExpireTimeSpan = TimeSpan.FromDays(365);
        })
        .AddAbpOpenIdConnect("oidc", options =>
        {
            options.Authority = configuration["AuthServer:Authority"];
            options.RequireHttpsMetadata = Convert.ToBoolean(configuration["AuthServer:RequireHttpsMetadata"]);;
            options.ResponseType = OpenIdConnectResponseType.CodeIdToken;

            options.ClientId = configuration["AuthServer:ClientId"];
            options.ClientSecret = configuration["AuthServer:ClientSecret"];

            options.SaveTokens = true;
            options.GetClaimsFromUserInfoEndpoint = true;

            options.Scope.Add("role");
            options.Scope.Add("email");
            options.Scope.Add("phone");
        });
}

I've removed the following 2 lines from the AddAuthentication method but after I call the base.OnPostAsync(action) method from my class that overrides the LoginModel class but after the result is returned the CurrentUser.IsAuthenticated property is still set to false despite have a SuccessfulLogin row in the SecuirtyLogs table.

options.DefaultScheme = "Cookies"; options.DefaultChallengeScheme = "oidc";

Please advise.

I'm still experiencing this issue depsite those two lines not being in the AddAuthentication call. Even though I get a successlogin row in the security log table the IsAuthenticated property is still set to false.

Showing 181 to 190 of 208 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06