summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Laniel <dlaniel@entrouvert.com>2007-05-03 16:48:37 +0000
committerDamien Laniel <dlaniel@entrouvert.com>2007-05-03 16:48:37 +0000
commit9b9d50558be73076c94d17c1780ea75e15bed385 (patch)
treeb41c330c2cdeee1b5acf96e507bc990b35621747
parent995323d2342f914c056a2676b15982f709dd3871 (diff)
fixed attribute name and name format
-rw-r--r--lasso/saml-2.0/login.c5
-rw-r--r--lasso/xml/strings.h5
2 files changed, 7 insertions, 3 deletions
diff --git a/lasso/saml-2.0/login.c b/lasso/saml-2.0/login.c
index 4a3d2cb9..981dd7ee 100644
--- a/lasso/saml-2.0/login.c
+++ b/lasso/saml-2.0/login.c
@@ -669,9 +669,8 @@ lasso_saml20_login_assertion_add_discovery(LassoLogin *login, LassoSaml2Assertio
attributeValue->any = g_list_append(attributeValue->any, epr);
attribute = LASSO_SAML2_ATTRIBUTE(lasso_saml2_attribute_new());
- attribute->Name = g_strdup("WsAddrEndpointReference");
- /* FIXME : Use Namespace of new WSA spec made in 2004 instead */
- attribute->NameFormat = g_strdup(LASSO_WSA_HREF);
+ attribute->Name = g_strdup(LASSO_SAML2_ATTRIBUTE_NAME_EPR);
+ attribute->NameFormat = g_strdup(LASSO_SAML2_ATTRIBUTE_NAME_FORMAT_URI);
attribute->AttributeValue = g_list_append(attribute->AttributeValue,
attributeValue);
diff --git a/lasso/xml/strings.h b/lasso/xml/strings.h
index 165b5d51..405a93de 100644
--- a/lasso/xml/strings.h
+++ b/lasso/xml/strings.h
@@ -359,6 +359,11 @@
#define LASSO_SAML2_NAME_IDENTIFIER_FORMAT_ENCRYPTED \
"urn:oasis:names:tc:SAML:2.0:nameid-format:encrypted"
+/* Attribute Name */
+#define LASSO_SAML2_ATTRIBUTE_NAME_EPR "urn:liberty:disco:2006-08:DiscoveryEPR"
+
+/* Attribute Name Format*/
+#define LASSO_SAML2_ATTRIBUTE_NAME_FORMAT_URI "urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
/* Consent */
#define LASSO_SAML2_CONSENT_OBTAINED "urn:oasis:names:tc:SAML:2.0:consent:obtained"