samlify icon indicating copy to clipboard operation
samlify copied to clipboard

Constructing an IDP with metadata string reads certificate of both IDP and SP

Open FreifeldRoyi opened this issue 5 years ago • 0 comments

When given a metadata xml with both IDP and SPSSODescriptor, it takes public certificate of both instead of taking just the one relevant to the constructed object, e.g:

const metadata = '...<SPSSODescriptor ...> ... </SPSSODescriptor>.. <IDPSSODescriptor ...>... </IDPSSODescriptor>'
const idp = IdentityProvider({metadata})
const md = idp.entityMeta.getX509Certificate('signing') // will return 2 certificates

FreifeldRoyi avatar Jun 17 '20 12:06 FreifeldRoyi