aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/service/rest/openid_plugin.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/service/rest/openid_plugin.c b/src/service/rest/openid_plugin.c
index cd3f975a4..07570938e 100644
--- a/src/service/rest/openid_plugin.c
+++ b/src/service/rest/openid_plugin.c
@@ -2394,7 +2394,7 @@ token_endpoint (struct GNUNET_REST_RequestHandle *con_handle,
2394 2394
2395 if (NULL != nonce) 2395 if (NULL != nonce)
2396 GNUNET_free (nonce); 2396 GNUNET_free (nonce);
2397 access_token = OIDC_access_token_new (&ticket); 2397 access_token = OIDC_access_token_new (&ticket, handle->oidc->redirect_uri);
2398 /** 2398 /**
2399 * Store mapping from access token to code so we can later 2399 * Store mapping from access token to code so we can later
2400 * fall back on the provided attributes in userinfo one time. 2400 * fall back on the provided attributes in userinfo one time.
@@ -2700,8 +2700,9 @@ userinfo_endpoint (struct GNUNET_REST_RequestHandle *con_handle,
2700 return; 2700 return;
2701 } 2701 }
2702 2702
2703 char *rp_uri;
2703 if (GNUNET_OK != OIDC_access_token_parse (authorization_access_token, 2704 if (GNUNET_OK != OIDC_access_token_parse (authorization_access_token,
2704 &ticket)) 2705 &ticket, &rp_uri))
2705 { 2706 {
2706 handle->emsg = GNUNET_strdup (OIDC_ERROR_KEY_INVALID_TOKEN); 2707 handle->emsg = GNUNET_strdup (OIDC_ERROR_KEY_INVALID_TOKEN);
2707 handle->edesc = GNUNET_strdup ("The access token is invalid"); 2708 handle->edesc = GNUNET_strdup ("The access token is invalid");
@@ -2727,9 +2728,11 @@ userinfo_endpoint (struct GNUNET_REST_RequestHandle *con_handle,
2727 handle); 2728 handle);
2728 handle->idp_op = GNUNET_RECLAIM_ticket_consume (idp, 2729 handle->idp_op = GNUNET_RECLAIM_ticket_consume (idp,
2729 &handle->ticket, 2730 &handle->ticket,
2731 rp_uri,
2730 &consume_ticket, 2732 &consume_ticket,
2731 handle); 2733 handle);
2732 GNUNET_free (authorization); 2734 GNUNET_free (authorization);
2735 GNUNET_free (rp_uri);
2733} 2736}
2734 2737
2735 2738