Add SubjectConfirmationData to response (#218)

- Using bearer method

Co-authored-by: Russell Johnson-Bade <russell.johnson-bade@corrivium.com>
This commit is contained in:
rjohnsonbade 2023-08-02 03:22:43 +10:00 committed by GitHub
parent 4c91b63249
commit 5f0d985ad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,6 +108,14 @@ const createResponseXML = async (params: {
'@Format': 'urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified',
'#text': user.email,
},
'saml:SubjectConfirmation': {
'@Method': 'urn:oasis:names:tc:SAML:2.0:cm:bearer',
'saml:SubjectConfirmationData': {
'@InResponseTo': inResponseTo,
'@NotOnOrAfter': notAfter,
'@Recipient': acsUrl,
},
},
},
'saml:Conditions': {
'@NotBefore': notBefore,