"douglasmolon@gmail.com" 'in aktiviteleri

hi

Can you try to inject the ISettingEncryptionService and Encrypt your default value?

I tested it with IStringEncryptionService directly and it worked!

The ISettingEncryptionService Encrypt method needs a SettingDefinition type parameter but doesn't really use it. Maybe this was unintentional.

Thank you!

hi

We can set the default value

Please share your code.Usually, you don't need to care about the encryption, which is done automatically.

https://docs.abp.io/en/abp/latest/Settings#isettingencryptionservice

 public override void Define(ISettingDefinitionContext context)
    {
        context.Add(new SettingDefinition(ProductServiceSettings.DataShareApiUrl, "http://192.168.15.3:5150", isEncrypted: false));
        context.Add(new SettingDefinition(ProductServiceSettings.DataSharePublicKey, "015e5387-05d4-4904-9d1a-b7a6c4241bd6", isEncrypted: false));
        context.Add(new SettingDefinition(ProductServiceSettings.DataShareSecretKey, "11ddf380-c141-4889-b5ee-dcdd72c0b8d0", isEncrypted: true));
        context.Add(new SettingDefinition(ProductServiceSettings.SchedulerUsername, "scheduler_user"));
        context.Add(new SettingDefinition(ProductServiceSettings.SchedulerPassword, "123456", isEncrypted: true));
       // and so on...
    }

Please note that settings that are not encrypted we can get default values using ISettingProvider normally, like this example: var urlHeader = $"{(await settingProvider.GetOrNullAsync(ProductServiceSettings.DataShareApiUrl)).EnsureEndsWith('/')}{url}";

But encrypted ones returns null. like this one: await settingProvider.GetOrNullAsync(ProductServiceSettings.DataShareSecretKey)

hi

Try the abp get-source Volo.Docs command, It also includes the admin part.

https://github.com/abpframework/abp/tree/dev/modules/docs

Thanks, it worked!

hi

We are unsure if the microservices request a new token with every HTTP request or if they continue using the same token until it expires and then obtain a new using refresh token.

It will request a token, cache it, and then continue to use it. refresh_token is not currently not supported.

So, when does he know he needs a new one? Apparently it's not getting it when the first expires. If we keep the default expiration (1 hour) the problem won't occur.

Hello! Anyone, please?

hi

System.IO.InvalidDataException: Form key length limit 2048 exceeded.

You can configure the KeyLengthLimit of FormOptions.

https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.features.formoptions.keylengthlimit?view=aspnetcore-7.0

It worked. Thanks!

6 kayıttan 1 ile 6 arası gösteriliyor.
Made with ❤️ on ABP v8.2.0-preview Updated on Mart 25, 2024, 15:11