खुला हुआ बंद किया हुआ

How to implement the token encryption in OpenIdDict #6562


User avatar
0
lht0502 बनाया था
  • ABP Framework version: v7.0.0
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hi, we found the builder.DisableAccessTokenEncryption(); in the AbpOpenIddictAspNetCoreModule.cs. Is there a way to enable back the Access Token Encryption?

Thanks.


1 उत्तर (ओं)
  • User Avatar
    0
    maliming बनाया था
    सहायता दल Fullstack Developer

    hi

    Angular needs to read the claims from the access token, so we disabled it.

    but you can enable it by setting DisableAccessTokenEncryption to false.

    public override void PreConfigureServices(ServiceConfigurationContext context)
    {
        PreConfigure<OpenIddictServerBuilder>(builder =>
        {
            builder.Configure(openIddictServerOptions =>
            {
                openIddictServerOptions.DisableAccessTokenEncryption = false;
            });
        }
    }
    
Made with ❤️ on ABP v8.2.0-preview Updated on मार्च 25, 2024, 15:11