Activities of "liangshiwei"

Answer

Hi,

Sorry for late.

Is there any error log?

Hi,

Could you share some screenshots and error logs? thanks.

Hi,

Ok, I think this might be browser-related, if you use Microsoft Edge will it work as expected?

Related link https://developer.chrome.com/blog/cors-rfc1918-feedback

And could you change the log level to debug and share the logs again? thanks for your time.

Hi,

Should always call SetBreadcrumbsAsync in the OnAfterRenderAsync method.

https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs#L224

I updated all modules and abp suite

Hi,

Can you try this?

"CorsOrigins": "https://*.localhost:4200,https://localhost:4200/"

https://github.com/abpframework/abp-samples/blob/master/DomainTenantResolver/OpenIddict/NG/aspnet-core/src/BookStore.HttpApi.Host/appsettings.json#L4

It will fixed in 8.0.3 patch version

Hi,

ABP uses the OnRegistered event to configure all permission Definitions. but it is a feature of autofac

You need to configure them manually without autofac

Hi,

You could consider inheriting WebTelemetryInitializerBase

  • https://github.com/microsoft/ApplicationInsights-dotnet/blob/main/WEB/Src/Web/Web/Implementation/WebTelemetryInitializerBase.cs
  • https://github.com/microsoft/ApplicationInsights-dotnet/blob/bde1239460fabb81733c91ce36e9c2b317f1b483/WEB/Src/Web/Web/UserTelemetryInitializer.cs#L13

Hi,

We will update the template. thank you.

Hi works for me:

public class TestAppService : QaAppService
{
    private readonly IOptionsMonitor<OpenIddictServerOptions> _oidcOptions;
    private readonly IdentityUserManager _userManager;

    public TestAppService(IOptionsMonitor<OpenIddictServerOptions> oidcOptions, IdentityUserManager userManager)
    {
        _oidcOptions = oidcOptions;
        _userManager = userManager;
    }
    public async Task<string> GenerateTokenAsync()
    {

        var user = await _userManager.FindByNameAsync("admin");
        var roles = await _userManager.GetRolesAsync(user);
        
        var claims = new List<Claim>()
        {
            new Claim("sub", user.Id.ToString()),
            new Claim("given_name", user.UserName),
            new Claim("email", user.Email),
            new Claim("role", string.Join(",", roles)),
            new Claim("tenantid", user.TenantId?.ToString() ?? ""),
            new Claim("scope", "address email phone roles profile offline_access Qa") //replace Qa with yours

        };
        var options = _oidcOptions.CurrentValue;
        var descriptor = new SecurityTokenDescriptor
        {
            Audience = "Qa", // replace with yours,
            EncryptingCredentials = options.DisableAccessTokenEncryption
                ? null
                : options.EncryptionCredentials.First(),
            Expires = null,
            Subject = new ClaimsIdentity(claims,TokenValidationParameters.DefaultAuthenticationType),
            IssuedAt = DateTime.UtcNow,
            Issuer = "https://localhost:44350/", // replace with yours,
            SigningCredentials = options.SigningCredentials.First(),
            TokenType = OpenIddictConstants.JsonWebTokenTypes.AccessToken,
        };
        
        var accessToken = options.JsonWebTokenHandler.CreateToken(descriptor);
        
        return accessToken;
    }
}

Showing 2541 to 2550 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.