mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 09:26:52 +01:00
* Correct security and privacy guidance Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9c2eebc4-dcd5-4b85-8113-90772d818900 * Address security privacy review findings Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9c2eebc4-dcd5-4b85-8113-90772d818900 --------- Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com>
20 lines
674 B
AL
20 lines
674 B
AL
codeunit 50219 "Sec Sample DataScope Good"
|
|
{
|
|
internal procedure StoreTenantApiKey(ApiKey: SecretText)
|
|
begin
|
|
IsolatedStorage.SetEncrypted('TenantApiKey', ApiKey, DataScope::Module);
|
|
end;
|
|
|
|
internal procedure StoreCompanyWebhook(WebhookUrl: SecretText)
|
|
begin
|
|
IsolatedStorage.SetEncrypted('WebhookUrl', WebhookUrl, DataScope::Company);
|
|
end;
|
|
|
|
local procedure ReadCompanyWebhook(var WebhookUrl: SecretText): Boolean
|
|
begin
|
|
if not IsolatedStorage.Contains('WebhookUrl', DataScope::Company) then
|
|
exit(false);
|
|
IsolatedStorage.Get('WebhookUrl', DataScope::Company, WebhookUrl);
|
|
exit(true);
|
|
end;
|
|
}
|