File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,6 +47,24 @@ class OneLogin_Saml2_Constants(object):
4747 NS_XENC = 'http://www.w3.org/2001/04/xmlenc#'
4848 NS_DS = 'http://www.w3.org/2000/09/xmldsig#'
4949
50+ # Namespace Prefixes
51+ NS_PREFIX_SAML = 'saml'
52+ NS_PREFIX_SAMLP = 'samlp'
53+ NS_PREFIX_MD = 'md'
54+ NS_PREFIX_XS = 'xs'
55+ NS_PREFIX_XSI = 'xsi'
56+ NS_PREFIX_XENC = 'xenc'
57+ NS_PREFIX_DS = 'ds'
58+
59+ # Prefix:Namespace Mappings
60+ NSMAP = {
61+ NS_PREFIX_SAMLP : NS_SAMLP ,
62+ NS_PREFIX_SAML : NS_SAML ,
63+ NS_PREFIX_DS : NS_DS ,
64+ NS_PREFIX_XENC : NS_XENC ,
65+ NS_PREFIX_MD : NS_MD
66+ }
67+
5068 # Bindings
5169 BINDING_HTTP_POST = 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST'
5270 BINDING_HTTP_REDIRECT = 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect'
@@ -76,15 +94,6 @@ class OneLogin_Saml2_Constants(object):
7694 STATUS_PARTIAL_LOGOUT = 'urn:oasis:names:tc:SAML:2.0:status:PartialLogout'
7795 STATUS_PROXY_COUNT_EXCEEDED = 'urn:oasis:names:tc:SAML:2.0:status:ProxyCountExceeded'
7896
79- # Namespaces
80- NSMAP = {
81- 'samlp' : NS_SAMLP ,
82- 'saml' : NS_SAML ,
83- 'ds' : NS_DS ,
84- 'xenc' : NS_XENC ,
85- 'md' : NS_MD
86- }
87-
8897 # Sign & Crypto
8998 SHA1 = 'http://www.w3.org/2000/09/xmldsig#sha1'
9099 SHA256 = 'http://www.w3.org/2001/04/xmlenc#sha256'
You can’t perform that action at this time.
0 commit comments