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.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/reclaim/plugin_rest_openid_connect.c
index a16e6592c..bf1e950da 100644
--- a/src/reclaim/plugin_rest_openid_connect.c
+++ b/src/reclaim/plugin_rest_openid_connect.c
@@ -1405,15 +1405,12 @@ authorize_endpoint (struct GNUNET_REST_RequestHandle *con_handle,
1405 return; 1405 return;
1406 } 1406 }
1407 1407
1408 // REQUIRED value: code_challenge 1408 // OPTIONAL value: code_challenge
1409 handle->oidc->code_challenge = get_url_parameter_copy (handle, OIDC_CODE_CHALLENGE_KEY); 1409 handle->oidc->code_challenge = get_url_parameter_copy (handle, OIDC_CODE_CHALLENGE_KEY);
1410 if (NULL == handle->oidc->code_challenge) 1410 if (NULL == handle->oidc->code_challenge)
1411 { 1411 {
1412 handle->emsg = GNUNET_strdup (OIDC_ERROR_KEY_INVALID_REQUEST); 1412 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
1413 handle->edesc = GNUNET_strdup ("missing parameter code_challenge"); 1413 "OAuth authorization request does not contain PKCE parameters!\n");
1414 handle->response_code = MHD_HTTP_INTERNAL_SERVER_ERROR;
1415 GNUNET_SCHEDULER_add_now (&do_error, handle);
1416 return;
1417 } 1414 }
1418 1415
1419 if (GNUNET_OK != 1416 if (GNUNET_OK !=
@@ -1762,7 +1759,7 @@ token_endpoint (struct GNUNET_REST_RequestHandle *con_handle,
1762 return; 1759 return;
1763 } 1760 }
1764 privkey = GNUNET_IDENTITY_ego_get_private_key (ego_entry->ego); 1761 privkey = GNUNET_IDENTITY_ego_get_private_key (ego_entry->ego);
1765 1762
1766 // REQUIRED code verifier 1763 // REQUIRED code verifier
1767 code_verifier = get_url_parameter_copy (handle, OIDC_CODE_VERIFIER_KEY); 1764 code_verifier = get_url_parameter_copy (handle, OIDC_CODE_VERIFIER_KEY);
1768 if (NULL == code_verifier) 1765 if (NULL == code_verifier)
@@ -2049,7 +2046,7 @@ list_ego (void *cls,
2049 } 2046 }
2050 GNUNET_assert (NULL != ego); 2047 GNUNET_assert (NULL != ego);
2051 if (ID_REST_STATE_INIT == handle->state) 2048 if (ID_REST_STATE_INIT == handle->state)
2052 2049
2053 { 2050 {
2054 ego_entry = GNUNET_new (struct EgoEntry); 2051 ego_entry = GNUNET_new (struct EgoEntry);
2055 GNUNET_IDENTITY_ego_get_public_key (ego, &pk); 2052 GNUNET_IDENTITY_ego_get_public_key (ego, &pk);