sso
This commit is contained in:
parent
029fe23657
commit
1876580d86
911 changed files with 160008 additions and 2 deletions
18
node_modules/xml-encryption/lib/templates/keyinfo.tpl.xml.js
generated
vendored
Normal file
18
node_modules/xml-encryption/lib/templates/keyinfo.tpl.xml.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
var escapehtml = require('escape-html');
|
||||
|
||||
module.exports = ({ encryptionPublicCert, encryptedKey, keyEncryptionMethod }) => `
|
||||
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
|
||||
<e:EncryptedKey xmlns:e="http://www.w3.org/2001/04/xmlenc#">
|
||||
<e:EncryptionMethod Algorithm="${escapehtml(keyEncryptionMethod)}">
|
||||
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
|
||||
</e:EncryptionMethod>
|
||||
<KeyInfo>
|
||||
${encryptionPublicCert}
|
||||
</KeyInfo>
|
||||
<e:CipherData>
|
||||
<e:CipherValue>${escapehtml(encryptedKey)}</e:CipherValue>
|
||||
</e:CipherData>
|
||||
</e:EncryptedKey>
|
||||
</KeyInfo>
|
||||
`;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue