mrrob503
09/09/2021, 11:43 AMbattk
09/09/2021, 11:47 AMmrrob503
09/09/2021, 1:33 PMbattk
09/09/2021, 1:39 PMbattk
09/09/2021, 1:41 PMmrrob503
09/09/2021, 1:43 PMbattk
09/09/2021, 1:46 PMbattk
09/09/2021, 1:47 PMmrrob503
09/09/2021, 1:47 PMbattk
09/09/2021, 1:47 PMBasic
is utf-8 while the QWxhZGRpbjpvcGVuIHNlc2FtZQ==
is base 64battk
09/09/2021, 1:47 PMmrrob503
09/09/2021, 1:48 PMconst basic = https.createSecureString({ input: 'Basic ' });
const cred64 = https.createSecureString({ input: 'custsecret_hitc_dev_restlet_base64' });
const auth = basic.appendSecureString({ secureString: cred64 }); // This isn't working :(
battk
09/09/2021, 1:50 PM{custsecret_hitc_dev_restlet_base64}
mrrob503
09/09/2021, 1:50 PMmrrob503
09/09/2021, 1:50 PMbattk
09/09/2021, 1:50 PMThe string to convert to a https.SecureString.
The following patterns are accepted:
\{[a-fA-F0-9]{32}\} or alternatively { + <32 hexadecimal characters forming a UUID/GUID> + }
\{custsecret[a-zA-Z0-9_]{1,89}\} or alternatively { + custsecret + <1 up to 89 alfanumeric characters or underscores > + }
specific payment-plugin tokens
mrrob503
09/09/2021, 1:51 PMbattk
09/09/2021, 1:51 PMbattk
09/09/2021, 1:51 PMmrrob503
09/09/2021, 1:52 PMbattk
09/09/2021, 1:52 PMbattk
09/09/2021, 1:53 PMbattk
09/09/2021, 1:53 PMBasic {custsecret_hitc_dev_restlet_base64}
mrrob503
09/09/2021, 1:55 PM