aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/plugin_rest_openid_connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reclaim/plugin_rest_openid_connect.c')
-rw-r--r--src/reclaim/plugin_rest_openid_connect.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/reclaim/plugin_rest_openid_connect.c
index 06e1b0061..3221c1cce 100644
--- a/src/reclaim/plugin_rest_openid_connect.c
+++ b/src/reclaim/plugin_rest_openid_connect.c
@@ -1041,10 +1041,15 @@ oidc_attest_collect_finished_cb (void *cls)
1041{ 1041{
1042 struct RequestHandle *handle = cls; 1042 struct RequestHandle *handle = cls;
1043 struct GNUNET_RECLAIM_AttributeList *merged_list; 1043 struct GNUNET_RECLAIM_AttributeList *merged_list;
1044 struct GNUNET_RECLAIM_AttributeListEntry *le_m;
1044 1045
1045 handle->attest_it = NULL; 1046 handle->attest_it = NULL;
1046 merged_list = attribute_list_merge (handle->attr_idtoken_list, 1047 merged_list = attribute_list_merge (handle->attr_idtoken_list,
1047 handle->attr_userinfo_list); 1048 handle->attr_userinfo_list);
1049 for (le_m = merged_list->list_head; NULL != le_m; le_m = le_m->next)
1050 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1051 "List Attibute in ticket to issue: %s\n",
1052 le_m->attribute->name);
1048 handle->idp_op = GNUNET_RECLAIM_ticket_issue (idp, 1053 handle->idp_op = GNUNET_RECLAIM_ticket_issue (idp,
1049 &handle->priv_key, 1054 &handle->priv_key,
1050 &handle->oidc->client_pkey, 1055 &handle->oidc->client_pkey,
@@ -2131,13 +2136,12 @@ consume_ticket (void *cls,
2131 char *result_str; 2136 char *result_str;
2132 handle->idp_op = NULL; 2137 handle->idp_op = NULL;
2133 2138
2134 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Attr: %s\n", attr->name);
2135 if (NULL == identity) 2139 if (NULL == identity)
2136 { 2140 {
2137 result_str = OIDC_generate_userinfo (&handle->ticket.identity, 2141 result_str = OIDC_generate_userinfo (&handle->ticket.identity,
2138 handle->attr_userinfo_list, 2142 handle->attr_userinfo_list,
2139 handle->attests_list); 2143 handle->attests_list);
2140 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Userinfo: %s\n", result_str); 2144 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Userinfo: %s\n", result_str);
2141 resp = GNUNET_REST_create_response (result_str); 2145 resp = GNUNET_REST_create_response (result_str);
2142 handle->proc (handle->proc_cls, resp, MHD_HTTP_OK); 2146 handle->proc (handle->proc_cls, resp, MHD_HTTP_OK);
2143 GNUNET_free (result_str); 2147 GNUNET_free (result_str);
@@ -2156,6 +2160,8 @@ consume_ticket (void *cls,
2156 GNUNET_CONTAINER_DLL_insert (handle->attr_userinfo_list->list_head, 2160 GNUNET_CONTAINER_DLL_insert (handle->attr_userinfo_list->list_head,
2157 handle->attr_userinfo_list->list_tail, 2161 handle->attr_userinfo_list->list_tail,
2158 ale); 2162 ale);
2163 if (NULL == attest)
2164 return;
2159 for (atle = handle->attests_list->list_head; NULL != atle; atle = atle->next) 2165 for (atle = handle->attests_list->list_head; NULL != atle; atle = atle->next)
2160 { 2166 {
2161 if (GNUNET_NO == GNUNET_RECLAIM_id_is_equal (&atle->attestation->id, 2167 if (GNUNET_NO == GNUNET_RECLAIM_id_is_equal (&atle->attestation->id,