[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: -initialize expiration time
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: -initialize expiration time |
Date: |
Sun, 07 Aug 2022 12:09:45 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 67a85e4f -initialize expiration time
67a85e4f is described below
commit 67a85e4f5f054a9468a7e597fe80696809021e31
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Aug 7 12:09:40 2022 +0200
-initialize expiration time
---
src/kyclogic/plugin_kyclogic_oauth2.c | 25 ++++++++++++++++++-------
1 file changed, 18 insertions(+), 7 deletions(-)
diff --git a/src/kyclogic/plugin_kyclogic_oauth2.c
b/src/kyclogic/plugin_kyclogic_oauth2.c
index 29fa84f1..3bcd745c 100644
--- a/src/kyclogic/plugin_kyclogic_oauth2.c
+++ b/src/kyclogic/plugin_kyclogic_oauth2.c
@@ -100,6 +100,11 @@ struct TALER_KYCLOGIC_ProviderDetails
*/
char *post_kyc_redirect_url;
+ /**
+ * Expiration time for a successful KYC process.
+ */
+ struct GNUNET_TIME_Relative expiration;
+
};
@@ -210,12 +215,6 @@ struct TALER_KYCLOGIC_ProofHandle
*/
char provider_legitimization_id[32];
-
- /**
- * Expiration time for a successful KYC process.
- */
- struct GNUNET_TIME_Absolute expiration;
-
/**
* KYC status to return.
*/
@@ -293,6 +292,18 @@ oauth2_load_configuration (void *cls,
pd = GNUNET_new (struct TALER_KYCLOGIC_ProviderDetails);
pd->ps = ps;
+ if (GNUNET_OK !=
+ GNUNET_CONFIGURATION_get_value_time (ps->cfg,
+ provider_section_name,
+ "KYC_OAUTH2_EXPIRATION",
+ &pd->expiration))
+ {
+ GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+ provider_section_name,
+ "KYC_OAUTH2_EXPIARTION");
+ oauth2_unload_configuration (pd);
+ return NULL;
+ }
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (ps->cfg,
provider_section_name,
@@ -542,7 +553,7 @@ return_proof_response (void *cls)
ph->status,
ph->provider_user_id,
ph->provider_legitimization_id,
- ph->expiration,
+ GNUNET_TIME_relative_to_absolute (ph->pd->expiration),
ph->http_status,
ph->response);
MHD_destroy_response (ph->response);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: -initialize expiration time,
gnunet <=