diff options
author | rhoerbe <rainer@hoerbe.at> | 2014-08-11 19:36:05 +0200 |
---|---|---|
committer | rhoerbe <rainer@hoerbe.at> | 2014-08-11 19:36:05 +0200 |
commit | 361f862950866d53819a86a41b382d2c5d5c10ff (patch) | |
tree | d7a653b9f08914870277cd653f09a23c03568f1d /src/saml2 | |
parent | 3c3f1c1a8526e8e2f694f79aff3622d8f12a7bd1 (diff) | |
download | pysaml2-361f862950866d53819a86a41b382d2c5d5c10ff.tar.gz |
extended API with lists for supported NameID formats, AttributeName formats, digest and sig algs
Diffstat (limited to 'src/saml2')
-rw-r--r-- | src/saml2/saml.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/saml2/saml.py b/src/saml2/saml.py index d24a37ca..a85bfd0d 100644 --- a/src/saml2/saml.py +++ b/src/saml2/saml.py @@ -36,7 +36,14 @@ NAMEID_FORMAT_TRANSIENT = ( "urn:oasis:names:tc:SAML:2.0:nameid-format:transient") NAMEID_FORMAT_ENTITY = ( "urn:oasis:names:tc:SAML:2.0:nameid-format:entity") - +NAMEID_FORMATS_SAML2 = ( + ('NAMEID_FORMAT_EMAILADDRESS', NAMEID_FORMAT_EMAILADDRESS), + ('NAMEID_FORMAT_ENCRYPTED', NAMEID_FORMAT_ENCRYPTED), + ('NAMEID_FORMAT_ENTITY', NAMEID_FORMAT_ENTITY), + ('NAMEID_FORMAT_PERSISTENT', NAMEID_FORMAT_PERSISTENT), + ('NAMEID_FORMAT_TRANSIENT', NAMEID_FORMAT_TRANSIENT), + ('NAMEID_FORMAT_UNSPECIFIED', NAMEID_FORMAT_UNSPECIFIED), +) PROFILE_ATTRIBUTE_BASIC = ( "urn:oasis:names:tc:SAML:2.0:profiles:attribute:basic") @@ -48,7 +55,11 @@ NAME_FORMAT_UNSPECIFIED = ( "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified") NAME_FORMAT_URI = "urn:oasis:names:tc:SAML:2.0:attrname-format:uri" NAME_FORMAT_BASIC = "urn:oasis:names:tc:SAML:2.0:attrname-format:basic" - +NAME_FORMATS_SAML2 = ( + ('NAME_FORMAT_BASIC', NAME_FORMAT_BASIC), + ('NAME_FORMAT_URI', NAME_FORMAT_URI), + ('NAME_FORMAT_UNSPECIFIED', NAME_FORMAT_UNSPECIFIED), +) DECISION_TYPE_PERMIT = "Permit" DECISION_TYPE_DENY = "Deny" DECISION_TYPE_INDETERMINATE = "Indeterminate" |