We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16cd67c commit 362e2cbCopy full SHA for 362e2cb
src/onelogin/saml2/idp_metadata_parser.py
@@ -200,7 +200,9 @@ def parse(
200
data['sp']['NameIDFormat'] = idp_name_id_format
201
202
if certs is not None:
203
- if len(certs) == 1 or \
+ if (len(certs) == 1 and \
204
+ (('signing' in certs and len(certs['signing']) == 1) or
205
+ ('encryption' in certs and len(certs['encryption']) == 1))) or \
206
(('signing' in certs and len(certs['signing']) == 1) and
207
('encryption' in certs and len(certs['encryption']) == 1 and
208
certs['signing'][0] == certs['encryption'][0])):
0 commit comments