Skip to content

Commit 11ad082

Browse files
author
Ioannis Kakavas
committed
Log a warning for insecure configurations
1 parent e08b3ff commit 11ad082

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/saml2/client_base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ def __init__(self, config=None, identity_cache=None, state_cache=None,
126126
if v is False or v == 'false':
127127
setattr(self, param, False)
128128

129+
if self.entity_type == "sp" and not any(self.want_assertions_signed,
130+
self.want_response_signed):
131+
logger.warning("The SAML service provider accepts unsigned SAML Responses " +
132+
"and Assertions. This configuration is insecure.")
133+
129134
self.artifact2response = {}
130135

131136
#

0 commit comments

Comments
 (0)