Aktivity „Payoff“

I want to enable DbContextPool in my solution, but I don't want to use the connection string that is shared with other code that should not be pooled. The AddDbContextPool extension requires that it be called from IServiceCollection and I haven't found a way to modify the registration in ABP. I saw a previous answer that I can't apply: can I have an example with the code?

And here is the example code : Configure<AbpDbContextOptions>(options => { // add support to second level cache in ABP options.Configure(d => { if (enableSecondLevelCache) { d.DbContextOptions.AddInterceptors(d.ServiceProvider.GetRequiredService<SecondLevelCacheInterceptor>()); } /* The main point to change your DBMS. * See also BloxDbContextFactory for EF Core tooling. */ d.UseNpgsql(); }); });

Thanks

  • ABP Framework version: v6.0.3
  • UI type: Angular
  • DB provider: EF Core

Version 6.x introduce Publish with option to specify MessageId, but we need to read it and other attributes to avoid potential duplicate handling. I've not found any easy way to read messageId and other parameters like rbs2-senttime, rbs2-corr-id, ... from handler am I missing something?

I want to create something on top like: https://www.milanjovanovic.tech/blog/idempotent-consumer-handling-duplicate-messages Can I have entry point to add this to out solution?

tnx mik

We need to integrate the login of a microservice written in .NET 7, without any dependency on ABP, with an application developed entirely in ABP 7.2.2 with OpenIddict. What we need is to enable the microservice to use ABP as its identity. How can we configure the microservice? Thank you.

  • ABP Framework version: 7.2.2
  • UI type: Angular
  • DB provider: EF Core PostgreSQL
  • *Identity Server Separated (Angular)**: no
Otázka

I need to add the spoken language to the IdentityUser. The user must be able to modify it in the settings, and if they don't, set a default one. How can I implement this function in the current version of ABP? Thank you.

  • ABP Framework version: v7.2.2 Commercial
  • UI Type: Angular
  • Database System: EF Core (PostgreSQL.)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
Odpoveď

I had seen the answer, but it doesn't seem to address my point. I want the user to input their spoken language in the settings, choosing from those available in ABP. This setting should be saved in their profile, and I need to use it to send emails in the correct language.

Hi, Have you refer this -> https://support.abp.io/QA/Questions/1315/How-can-I-set-default-language-to-FI please check if it helps you.

How is it possible to create a new tenant using current form and setting the default connection string programmatically, so as to not expose this information externally? One example could be to use the tenant's name and append it to the current database name. Is this easily doable without re-writing the code for SaaS?

Thank you.

  • ABP Framework version: v7.3.3
  • UI Type: Angular
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
Otázka

Need to add to Autofac registration in modules to add a decorator, something like: // var builder = new ContainerBuilder(); builder.RegisterType<MyService>().As<IMyService>(); builder.RegisterDecorator<IMyService>((context, inner) => new MyServiceDecorator(inner), fromKeyType: typeof(IMyService));

Tnx

ABP Framework version: v7.3.3
UI Type: Angular
Database System: EF Core (PostgreSQL)
Tiered (for MVC) or Auth Server Separated (for Angular): no

Is it possible to override an AppService and modify its logic without rewriting the entire module? This way, there's no need to modify the form, but all the work can be done on the backend Thank you.

Otázka

We are trying to implement the Passwordless solution, following the guidelines provided at https://community.abp.io/posts/implementing-passwordless-authentication-with-asp.net-core-identity-c25l8koj. However, the solution is for MVC, and we have revised it to work with Angular. The issue is with the login, which, instead of doing this (not works with angular): `

        public virtual async Task&lt;IActionResult&gt; Login(string token, string userId)
        {
            var user = await UserManager.FindByIdAsync(userId);

            var isValid = await UserManager.VerifyUserTokenAsync(user, "PasswordlessLoginProvider", "passwordless-auth", token);
            if (!isValid)
            {
                throw new UnauthorizedAccessException("The token " + token + " is not valid for the user " + userId);
            }

            await UserManager.UpdateSecurityStampAsync(user);
            await SignInManager.SignInAsync(user, isPersistent: false);
            return Redirect("/");
        }

` should obtain an authorization token or something similar. Can you provide us with the code to generate the authentication and enable the login? Thank you.

ABP Framework version: v7.4.2
UI Type: Angular
Database System: EF Core (PostgreSQL)
Integrated OpenIddict Auth Server with Angular
Odpoveď

I understand, but I also know that real-world applications often use Passwordless authentication with Angular. The first step involves creating a passwordless token and sending it via email, allowing the user to input it on the login page. We have already accomplished this. Now, I believe the next step is to create an authorization token to send back to the Angular application for use, provided that the token is correct. If the bearer token was created by OpenIddict, it should be recognized. Does that sound good to you? If so, how can I obtain a token on the server side within the app service so that I can send it back to the client?

Thanks Michele

Zobrazených 1 až 10 z 13 záznamov
Made with ❤️ on ABP v8.2.0-preview Updated on marca 25, 2024, 15:11