bcquality/microsoft/knowledge/security/nondebuggable-required-when-unwrapping-secrettext.good.al
Jesper Schulz-Wedde ec8f891954 Correct security and privacy guidance
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9c2eebc4-dcd5-4b85-8113-90772d818900
2026-07-14 10:45:42 +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;
}