Add missing urn constants used in PAOS HTTP header

The new OASIS "SAML V2.0 Enhanced Client or Proxy Profile Version 2.0"
specification added new options that can appear in the PAOS HTTP header.

Section 2.3.1 enumerates the following URN options which can appear
in the PAOS HEADER:

urn:oasis:names:tc:SAML:protocol:ext:channel-binding
urn:oasis:names:tc:SAML:2.0:cm:holder-of-key
urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp:2.0:WantAuthnRequestsSigned
urn:oasis:names:tc:SAML:2.0:conditions:delegation

Of these only the holder-of-key was previously defined in Lasso,
this patch adds the other 3 constants.

License: MIT
Signed-off-by: John Dennis <jdennis@redhat.com>
This commit is contained in:
John Dennis 2015-10-15 11:32:50 -04:00 committed by Benjamin Dauvergne
parent eaabf4c611
commit eadc660d35
2 changed files with 19 additions and 0 deletions

View File

@ -414,4 +414,13 @@
#define LASSO_SAML2_ATTRIBUTE_PROFILE_UUID "urn:oasis:names:tc:SAML:2.0:profiles:attribute:UUID"
#define LASSO_SAML2_ATTRIBUTE_PROFILE_DCE "urn:oasis:names:tc:SAML:2.0:profiles:attribute:DCE"
/* SAML 2.0 SSO Profile */
#define LASSO_SAML2_ECP_PROFILE_WANT_AUTHN_SIGNED "urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp:2.0:WantAuthnRequestsSigned"
/* SAML 2.0 Conditions */
#define LASSO_SAML2_CONDITIONS_DELEGATION "urn:oasis:names:tc:SAML:2.0:conditions:delegation"
#endif /* __LASSO_SAML2_STRINGS_H__ */

View File

@ -927,6 +927,16 @@
#define LASSO_SAML_CONFIRMATION_METHOD_SENDER_VOUCHES \
"urn:oasis:names:tc:SAML:1.0:cm:sender-vouches"
/* Extensions */
/**
* LASSO_SAML_EXT_CHANNEL_BINDING:
*
* Indicates support for channel binding
*
*
#define LASSO_SAML_EXT_CHANNEL_BINDING "urn:oasis:names:tc:SAML:protocol:ext:channel-binding"
/*****************************************************************************/
/* POAS BINDING */
/*****************************************************************************/