Activities of "oshabani"

We have the same issue , when i trying to access a secure API from Postman , i got the token but once i send the API i got this error : [INF] The response was successfully returned as a challenge response: { "error": "invalid_token", "error_description": "The specified token doesn't contain any audience.", "error_uri": "https://documentation.openiddict.com/errors/ID2093" }. and postman give Unauthorized , i was trying to pass the audience in the body request of access token, URL and header but nothing work

i only have to remove options.AddAudiences("SysConfig"); from PreConfigure method

PreConfigure<OpenIddictBuilder>(builder =>
{
    builder.AddValidation(options =>
    {
        //options.AddAudiences("SysConfig");
        options.UseLocalServer();
        options.UseAspNetCore();
    });
});

Resolved...Thanks

I have confirmed that the KeyPrefix as "Iam:" is same in AuthServer, HttpApiHost and Web projects.

I have noticed one error in Iam Log: 2024-08-01 08:43:11.893 +03:00 [ERR] The access_token is not active.

**Auth Server:**
var dataProtectionBuilder = context.Services.AddDataProtection().SetApplicationName("Iam");
if (!hostingEnvironment.IsDevelopment())
{
    var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]);
    dataProtectionBuilder.PersistKeysToStackExchangeRedis(redis, "Iam-Protection-Keys");
}

context.Services.AddSingleton<IDistributedLockProvider>(sp =>
{
    var connection = ConnectionMultiplexer
        .Connect(configuration["Redis:Configuration"]);
    return new RedisDistributedSynchronizationProvider(connection.GetDatabase());
});

**HttpApiHost:**

private void ConfigureDataProtection(
    ServiceConfigurationContext context,
    IConfiguration configuration,
    IWebHostEnvironment hostingEnvironment)
{
    var dataProtectionBuilder = context.Services.AddDataProtection().SetApplicationName("Iam");
    if (!hostingEnvironment.IsDevelopment())
    {
        var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]);
        dataProtectionBuilder.PersistKeysToStackExchangeRedis(redis, "Iam-Protection-Keys");
    }
}

private void ConfigureDistributedLocking(
        ServiceConfigurationContext context,
        IConfiguration configuration)
{
    context.Services.AddSingleton<IDistributedLockProvider>(sp =>
    {
        var connection = ConnectionMultiplexer
            .Connect(configuration["Redis:Configuration"]);
        return new RedisDistributedSynchronizationProvider(connection.GetDatabase());
    });
}


**Web:**

 private void ConfigureDataProtection(
     ServiceConfigurationContext context,
     IConfiguration configuration,
     IWebHostEnvironment hostingEnvironment)
 {
     var dataProtectionBuilder = context.Services.AddDataProtection().SetApplicationName("Iam");
     if (!hostingEnvironment.IsDevelopment())
     {
         var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]);
         dataProtectionBuilder.PersistKeysToStackExchangeRedis(redis, "Iam-Protection-Keys");
     }
 }

 private void ConfigureDistributedLocking(
             ServiceConfigurationContext context,
             IConfiguration configuration)
 {
     context.Services.AddSingleton<IDistributedLockProvider>(sp =>
     {
         var connection = ConnectionMultiplexer
             .Connect(configuration["Redis:Configuration"]);
         return new RedisDistributedSynchronizationProvider(connection.GetDatabase());
     });
 }

It was working fine before upgrade so there is no change in Redis configuration. This problem happened right after the upgrade. In this upgrade is see sessions feature is added. Maybe the session is not being created for the user.

Side menu is not showing after upgrade from 8.1.0 to 8.2.0

  • ABP Framework version: v8.2.0
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace: There is no exception showing only the side menu always showing "Home" only
  • Steps to reproduce the issue: upgrade from 8.1.0 to 8.2.0

Please download the following video file that shows the problem:

https://drive.google.com/file/d/1uR3pDtsQGF0dx_PdYHwL2j_R1V3NzZNG/view?usp=sharing

The problem is posting date format

Please try this link to download the project https://drive.google.com/file/d/1P916AsMgEubczSnbM6../view?usp=sharing

Showing 1 to 10 of 59 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35