elsa-core/src/modules/Elsa.Secrets.Scripting/JavaScript
Sipke Schoorstra a6ff1f5506
Refactor JS expressions for accessing secrets (#6070)
* Add support for secret accessor functions in JavaScript

Refactored the rendering and evaluation of JavaScript to include method definitions alongside existing properties. Enhanced secret handling by generating asynchronous accessor functions, improving the clarity and functionality of secret management in scripting.

* Refactor secret retrieval logic in JavaScript engine configuration

Refactored the code to use a dedicated method `ResolveSecretAsync` for secret retrieval, improving clarity and maintainability. Added a check to ensure that only active secrets are decrypted, enhancing robustness and error handling.

* Add SecretExpired notification and mediator to updater

Introduces a new SecretExpired notification class and integrates it within DefaultExpiredSecretsUpdater. The updater now sends a SecretExpired notification via the mediator upon expiring a secret.
2024-10-30 09:19:14 +01:00
..
ConfigureEngineWithSecrets.cs Refactor JS expressions for accessing secrets (#6070) 2024-10-30 09:19:14 +01:00
SecretsTypeDefinitionProvider.cs Refactor JS expressions for accessing secrets (#6070) 2024-10-30 09:19:14 +01:00