Activities of "naeem76"

Actually it's happening a lot, and is breaking the login flow for oauth.

Any way to ignore it for now, this is quite urgent I have been trying to hijack the AbpOpenIddictTokenStore, but I don't think the service is being replaced.

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IOpenIddictTokenStore<OpenIddictTokenModel>), typeof(AbpOpenIddictTokenStore))]
public class CustomAbpOpenIddictTokenStore : AbpOpenIddictTokenStore
{
    private readonly HelperUtility _helperUtility;

    public CustomAbpOpenIddictTokenStore(
        HelperUtility helperUtility,
        IOpenIddictTokenRepository repository,
        IUnitOfWorkManager unitOfWorkManager,
        IGuidGenerator guidGenerator,
        IOpenIddictApplicationRepository applicationRepository,
        IOpenIddictAuthorizationRepository authorizationRepository,
        AbpOpenIddictIdentifierConverter identifierConverter,
        IOpenIddictDbConcurrencyExceptionHandler concurrencyExceptionHandler,
        IOptions<AbpOpenIddictStoreOptions> storeOptions)
        : base(repository, unitOfWorkManager, guidGenerator, applicationRepository, authorizationRepository, identifierConverter, concurrencyExceptionHandler, storeOptions)
    {
        _helperUtility = helperUtility;
    }

    public override ValueTask DeleteAsync(OpenIddictTokenModel token, CancellationToken cancellationToken)
    {
        try
        {
            return base.DeleteAsync(token, cancellationToken);
        }
        catch (AbpDbConcurrencyException)
        {
            _ = _helperUtility.SendMsgToSlack("Caught abp Token ConcurrencyException");
            return default;
        }
        catch (OpenIddictExceptions.ConcurrencyException)
        {
            _ = _helperUtility.SendMsgToSlack("Caught Token ConcurrencyException");
            return default;
        }
    }

    public override ValueTask UpdateAsync(OpenIddictTokenModel token, CancellationToken cancellationToken)
    {
        try
        {
            _ = _helperUtility.SendMsgToSlack("called update");
            return base.UpdateAsync(token, cancellationToken);
        }
        catch (AbpDbConcurrencyException)
        {
            _ = _helperUtility.SendMsgToSlack("Caught abp Token ConcurrencyException");
            return default;
        }
        catch (OpenIddictExceptions.ConcurrencyException)
        {
            _ = _helperUtility.SendMsgToSlack("Caught Token ConcurrencyException");
            return default;
        }
    }
}

Any easy way to migrate to 8.1 on a big project? I've tried following docs, but end up being too many package inconsistencies.

Ignore please, was a bad config.

That at least helped me steer in the right direction. Just learned that the order of that function matters, I had it at the end, we have a couple of other settings, but when I put it right after the line options.CustomSchemaIds(type => type.FullName);, it worked.

Thank you!

The issue seems to be on firefox. Working correctly on chrome. Thanks for looking into it, closing.

Thank you!

Hi, can you try first logout and then login ?

abp logout 
 
abp login <username> -p <password> -o <organization-name> 

Not working

Also tried on a fresh machine by installing ABP CLI, and trying to login, same error

Having the same issue here

Showing 21 to 28 of 28 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13