Skip to content

Commit d782971

Browse files
Patch algorithm definitions (#625)
To match node-saml master and spec.
1 parent 3a13fb9 commit d782971

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/node-saml/saml.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1402,8 +1402,8 @@ class SAML {
14021402
},
14031403
EncryptionMethod: [
14041404
// this should be the set that the xmlenc library supports
1405-
{ "@Algorithm": "http://www.w3.org/2001/04/xmlenc#aes256-gcm" },
1406-
{ "@Algorithm": "http://www.w3.org/2001/04/xmlenc#aes128-gcm" },
1405+
{ "@Algorithm": "http://www.w3.org/2009/xmlenc11#aes256-gcm" },
1406+
{ "@Algorithm": "http://www.w3.org/2009/xmlenc11#aes128-gcm" },
14071407
{ "@Algorithm": "http://www.w3.org/2001/04/xmlenc#aes256-cbc" },
14081408
{ "@Algorithm": "http://www.w3.org/2001/04/xmlenc#aes128-cbc" },
14091409
],

test/static/expected metadata.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ nwtlCg==
3333
</ds:X509Certificate>
3434
</ds:X509Data>
3535
</ds:KeyInfo>
36-
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-gcm"/>
37-
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-gcm"/>
36+
<EncryptionMethod Algorithm="http://www.w3.org/2009/xmlenc11#aes256-gcm"/>
37+
<EncryptionMethod Algorithm="http://www.w3.org/2009/xmlenc11#aes128-gcm"/>
3838
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"/>
3939
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/>
4040
</KeyDescriptor>

test/static/expectedMetadataWithBothKeys.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ nwtlCg==
5555
</ds:X509Certificate>
5656
</ds:X509Data>
5757
</ds:KeyInfo>
58-
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-gcm"/>
59-
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-gcm"/>
58+
<EncryptionMethod Algorithm="http://www.w3.org/2009/xmlenc11#aes256-gcm"/>
59+
<EncryptionMethod Algorithm="http://www.w3.org/2009/xmlenc11#aes128-gcm"/>
6060
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"/>
6161
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/>
6262
</KeyDescriptor>

0 commit comments

Comments
 (0)