bcquality/microsoft/knowledge/security/nondebuggable-required-when-unwrapping-secrettext.good.al
Jesper Schulz-Wedde aca3986fd0
Correct security and privacy knowledge guidance (#92)
* 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>
2026-07-14 11:25:03 +02:00

17 lines
423 B
AL

codeunit 50213 "Sec Sample NonDebug Good"
{
[NonDebuggable]
procedure CallLegacyOnPremisesConsumer(ApiKey: SecretText)
var
PlainApiKey: Text;
begin
PlainApiKey := ApiKey.Unwrap();
InvokeLegacyConsumer(PlainApiKey);
end;
[NonDebuggable]
local procedure InvokeLegacyConsumer(ApiKey: Text)
begin
// The on-premises legacy consumer accepts only Text.
end;
}