use correct attribute name in test
This commit is contained in:
parent
ff202ef296
commit
e8c8aa9efe
@ -58,7 +58,7 @@ KYC_OAUTH2_INFO_URL = http://localhost:6666/api/user/me
|
|||||||
KYC_OAUTH2_CLIENT_ID = taler-exchange
|
KYC_OAUTH2_CLIENT_ID = taler-exchange
|
||||||
KYC_OAUTH2_CLIENT_SECRET = exchange-secret
|
KYC_OAUTH2_CLIENT_SECRET = exchange-secret
|
||||||
KYC_OAUTH2_POST_URL = http://example.com/
|
KYC_OAUTH2_POST_URL = http://example.com/
|
||||||
KYC_OAUTH2_ATTRIBUTE_TEMPLATE = "{"fullname":"{{last_name}}, {{first_name}}"}"
|
KYC_OAUTH2_ATTRIBUTE_TEMPLATE = "{"full_name":"{{last_name}}, {{first_name}}"}"
|
||||||
|
|
||||||
[kyc-legitimization-balance-high]
|
[kyc-legitimization-balance-high]
|
||||||
OPERATION_TYPE = BALANCE
|
OPERATION_TYPE = BALANCE
|
||||||
|
@ -71,6 +71,28 @@ struct AttestState
|
|||||||
* Interpreter state.
|
* Interpreter state.
|
||||||
*/
|
*/
|
||||||
struct TALER_TESTING_Interpreter *is;
|
struct TALER_TESTING_Interpreter *is;
|
||||||
|
|
||||||
|
/* TODO: expose fields below as traits... */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attested attributes returned by the exchange.
|
||||||
|
*/
|
||||||
|
json_t *attributes;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Expiration time of the attested attributes.
|
||||||
|
*/
|
||||||
|
struct GNUNET_TIME_Timestamp expiration_time;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Signature by the exchange affirming the attributes.
|
||||||
|
*/
|
||||||
|
struct TALER_ExchangeSignatureP exchange_sig;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Online signing key used by the exchange.
|
||||||
|
*/
|
||||||
|
struct TALER_ExchangePublicKeyP exchange_pub;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -108,7 +130,10 @@ reserve_attest_cb (
|
|||||||
TALER_TESTING_interpreter_next (is);
|
TALER_TESTING_interpreter_next (is);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* FIXME: persist attestation... */
|
ss->attributes = json_incref ((json_t*) rs->details.ok.attributes);
|
||||||
|
ss->expiration_time = rs->details.ok.expiration_time;
|
||||||
|
ss->exchange_pub = rs->details.ok.exchange_pub;
|
||||||
|
ss->exchange_sig = rs->details.ok.exchange_sig;
|
||||||
TALER_TESTING_interpreter_next (is);
|
TALER_TESTING_interpreter_next (is);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -181,6 +206,7 @@ attest_cleanup (void *cls,
|
|||||||
TALER_EXCHANGE_reserves_attest_cancel (ss->rsh);
|
TALER_EXCHANGE_reserves_attest_cancel (ss->rsh);
|
||||||
ss->rsh = NULL;
|
ss->rsh = NULL;
|
||||||
}
|
}
|
||||||
|
json_decref (ss->attributes);
|
||||||
GNUNET_free (ss->attrs);
|
GNUNET_free (ss->attrs);
|
||||||
GNUNET_free (ss);
|
GNUNET_free (ss);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user