[Python-modules-commits] [python-social-auth] 04/15: Make IdP name format slightly more flexible
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Dec 24 15:13:34 UTC 2016
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to tag v0.2.11
in repository python-social-auth.
commit b6b557eed3ed7cfd630d329c165ae7d3fe1355f1
Author: Braden MacDonald <braden at opencraft.com>
Date: Wed May 20 10:41:07 2015 -0700
Make IdP name format slightly more flexible
---
social/backends/saml.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/social/backends/saml.py b/social/backends/saml.py
index 135cf40..0a50c96 100644
--- a/social/backends/saml.py
+++ b/social/backends/saml.py
@@ -28,7 +28,8 @@ class SAMLIdentityProvider(object):
def __init__(self, name, **kwargs):
""" Load and parse configuration """
self.name = name
- assert self.name.isalnum() # If 'name' contained a colon, it would affect our UID mangling
+ # name should be a slug and must not contain a colon, which could conflict with uid prefixing:
+ assert ':' not in self.name and ' ' not in self.name, "IdP 'name' should be a slug (short, no spaces)"
self.conf = kwargs
def get_user_permanent_id(self, attributes):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git
More information about the Python-modules-commits
mailing list