Attività di "liangshiwei"

Hi,

You can configure the AbpMongoDbContextOptions

Configure<AbpMongoDbContextOptions>(options =>
{
    options.MongoClientSettingsConfigurer = settings =>
    {
        settings.AutoEncryptionOptions = ....
    };
});

You can check this: https://stackoverflow.com/questions/68659436/how-to-encrypt-a-class-property-using-mongodb-csfle-in-dot-net-core

Hi,

First, you need to configure the module entity extension.

https://docs.abp.io/en/abp/latest/Module-Entity-Extensions#quick-example

For example:

public static void ConfigureExtraProperties()
{
    OneTimeRunner.Run(() =>
    {
        ObjectExtensionManager.Instance.Modules()
            .ConfigureSaas(saas =>
            {
                saas.ConfigureTenant(tenant =>
                {
                    user.AddOrUpdateProperty<string>( //property type: string
                        "BlobConnectionString", //property name
                        property =>
                        {
                            //...other configurations for this property
                        }
                    );
                });
            });
    });
}

Hi,

You can use the BLOB Storing Azure Provider: https://docs.abp.io/en/abp/latest/Blob-Storing-Azure

Also please mention where is the mapping of Users and their corresponding blobs?

ABP uses the BLOB Storing system to save the user's profile picture, and the provider is the database by default https://docs.abp.io/en/abp/latest/Blob-Storing

ABP uses the user ID as a profile picture file name, so there is no need to store the link in the database

Risposta

Hi,

There is a discussion here:

https://github.com/abpframework/abp/issues/13017

You need to adjust the server's time zone correctly.

Please let me know if it's not work.

Hi,

Ok, but no error details and stack are logged. sorry, I didn't find anything.

You can check this to get the details for the exception. https://github.com/dotnet/efcore/issues/33319#issuecomment-2030777176

I'm closing this, free open.

Hi,

This article also applies to Angular UI https://community.abp.io/posts/implementing-passwordless-authentication-with-asp.net-core-identity-c25l8koj

You just need to redirect to the angular website in the publicclassPasswordlessController.

For example:

using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.Identity;
using Volo.Abp.Identity.AspNetCore;

namespace PasswordlessAuthentication.Web.Controllers
{
    public class PasswordlessController : AbpController
    {
        protected IdentityUserManager UserManager { get; }

        protected AbpSignInManager SignInManager { get; }

        public PasswordlessController(IdentityUserManager userManager, AbpSignInManager signInManager)
        {
            UserManager = userManager;
            SignInManager = signInManager;
        }

        public virtual async Task<IActionResult> 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);

            var ngAppUrl = "http://localhost:4200/account/login"
            return Redirect(ngAppUrl);
        }
    }
}

Hi,

This is a problem, we will fix it in the next patch version.

I have two more questions, Im reviewing class DistributedEventBusBase.cs method protected virtual async Task<bool> AddToOutboxAsync(Type eventType, object eventData) and i cant insert to AbpEventOutbox table values on ExtraProperties column when overriding the method.

I think you can do it without any problem.

 var outgoingEventInfo = new OutgoingEventInfo(
    GuidGenerator.Create(),
    eventName,
    Serialize(eventData),
    Clock.Now
);
outgoingEventInfo.ExtraProperties["test"] = "value"

My second question, Im working with google protobuff to publish binary messages on Azure Service Bus, using MyAzureDistributedEventBus from previous questions, and casting Etos to proto generated classes before publishing on Azure Service Bus. I dont know if it is possible to instead of working on distributed events with Etos and IEntityEto<TKey> interface, is possible to work with a custom interface or a IMessage interface from google protobuff protocol.

I don't know much about google protobuff protocol, you can give it a try.

4681 - 4690 di 4736
Made with ❤️ on ABP v8.2.0-preview Updated on marzo 25, 2024, 15:11