diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-08-05 14:52:41 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-08-05 14:52:41 +0000 |
| commit | 228520ccf65bc05c6d6661a70f84f7fd04a1bfde (patch) | |
| tree | f660caf69788f1cfdcde8691f76b81d0ba53f895 | |
| parent | eeca0e7f0143b04cb10a289fd11770822e675508 (diff) | |
| download | lasso-228520ccf65bc05c6d6661a70f84f7fd04a1bfde.tar.gz lasso-228520ccf65bc05c6d6661a70f84f7fd04a1bfde.tar.xz lasso-228520ccf65bc05c6d6661a70f84f7fd04a1bfde.zip | |
* remove code to add credentials, it is actually useless.
| -rw-r--r-- | lasso/id-ff/login.c | 57 |
1 files changed, 1 insertions, 56 deletions
diff --git a/lasso/id-ff/login.c b/lasso/id-ff/login.c index 92ee7d37..fbc3bb1a 100644 --- a/lasso/id-ff/login.c +++ b/lasso/id-ff/login.c @@ -234,62 +234,7 @@ lasso_login_assertion_add_discovery(LassoLogin *login, LassoSamlAssertion *asser assertion->AttributeStatement = attributeStatement; - /* Add optional credential */ - listDescriptions = newServiceInstance->Description; - while (listDescriptions) { - description = LASSO_DISCO_DESCRIPTION(listDescriptions->data); - listSecurityMechIds = description->SecurityMechID; - found = FALSE; - while (listSecurityMechIds) { - securityMechId = listSecurityMechIds->data; - if (g_str_equal(securityMechId, - LASSO_SECURITY_MECH_SAML)==TRUE || \ - g_str_equal(securityMechId, - LASSO_SECURITY_MECH_TLS_SAML) == TRUE || \ - g_str_equal(securityMechId, - LASSO_SECURITY_MECH_CLIENT_TLS_SAML)==TRUE) { - found = TRUE; - break; - } - - listSecurityMechIds = listSecurityMechIds->next; - } - if (found == TRUE) { - /* FIXME: Add required attributes for assertion */ - if (LASSO_IS_SAML_ASSERTION(credential) == FALSE) { - profile = LASSO_PROFILE(login); - - credential = lasso_saml_assertion_new(); - credential->AssertionID = lasso_build_unique_id(32); - credential->MajorVersion = LASSO_SAML_MAJOR_VERSION_N; - credential->MinorVersion = LASSO_SAML_MINOR_VERSION_N; - credential->IssueInstant = lasso_get_current_time(); - credential->Issuer = g_strdup( - LASSO_PROVIDER(profile->server)->ProviderID); - - conditions = lasso_saml_conditions_new(); - credential->Conditions = conditions; - audience_restriction_condition = \ - lasso_saml_audience_restriction_condition_new_full( - LASSO_PROVIDER(profile->server)->ProviderID); - conditions->AudienceRestrictionCondition = \ - g_list_append(conditions->AudienceRestrictionCondition, - audience_restriction_condition); - - /* FIXME: Missing AuthenticationStatement and - AttributeStatement */ - - advice = LASSO_SAML_ADVICE(lasso_saml_advice_new()); - // advice->Assertion = LASSO_NODE(credential); - assertion->Advice = advice; - } - description->CredentialRef = g_list_append( - description->CredentialRef, - g_strdup(credential->AssertionID)); - } - - listDescriptions = listDescriptions->next; - } + /* FIXME: Add Credentials and CredentialRef */ } #endif } |
