mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 17:36:53 +01:00
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9c2eebc4-dcd5-4b85-8113-90772d818900
17 lines
440 B
AL
17 lines
440 B
AL
codeunit 50212 "Sec Sample SecretSubst Bad"
|
|
{
|
|
procedure BuildAuthHeader(Token: Text): Text
|
|
begin
|
|
exit(StrSubstNo('Bearer %1', Token));
|
|
end;
|
|
|
|
procedure BuildSecretUri(ApiKey: Text): Text
|
|
begin
|
|
exit(StrSubstNo('https://api.example.com/data?key=%1', ApiKey));
|
|
end;
|
|
|
|
procedure BuildBrokenAuthHeader(Token: SecretText): SecretText
|
|
begin
|
|
exit(SecretStrSubstNo('Bearer', Token));
|
|
end;
|
|
}
|