[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: RECLAIM: Fix FTBFS OIDC plugin
From: |
gnunet |
Subject: |
[gnunet] branch master updated: RECLAIM: Fix FTBFS OIDC plugin |
Date: |
Tue, 07 May 2024 17:54:44 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 7bec20c7d RECLAIM: Fix FTBFS OIDC plugin
7bec20c7d is described below
commit 7bec20c7d509e16c1061731198b0bf92f84e2631
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Tue May 7 17:54:40 2024 +0200
RECLAIM: Fix FTBFS OIDC plugin
---
src/service/rest/openid_plugin.c | 7 +++++--
1 file 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,
if (NULL != nonce)
GNUNET_free (nonce);
- access_token = OIDC_access_token_new (&ticket);
+ access_token = OIDC_access_token_new (&ticket, handle->oidc->redirect_uri);
/**
* Store mapping from access token to code so we can later
* fall back on the provided attributes in userinfo one time.
@@ -2700,8 +2700,9 @@ userinfo_endpoint (struct GNUNET_REST_RequestHandle
*con_handle,
return;
}
+ char *rp_uri;
if (GNUNET_OK != OIDC_access_token_parse (authorization_access_token,
- &ticket))
+ &ticket, &rp_uri))
{
handle->emsg = GNUNET_strdup (OIDC_ERROR_KEY_INVALID_TOKEN);
handle->edesc = GNUNET_strdup ("The access token is invalid");
@@ -2727,9 +2728,11 @@ userinfo_endpoint (struct GNUNET_REST_RequestHandle
*con_handle,
handle);
handle->idp_op = GNUNET_RECLAIM_ticket_consume (idp,
&handle->ticket,
+ rp_uri,
&consume_ticket,
handle);
GNUNET_free (authorization);
+ GNUNET_free (rp_uri);
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: RECLAIM: Fix FTBFS OIDC plugin,
gnunet <=