Closed brianddk closed 4 months ago
Thanks for reporting @brianddk ! I checked with our team and they said a fix was pushed for this. Could you check if you are able to hit this endpoint without the 2FA header now?
I checked with our team and they said a fix was pushed for this. Could you check if you are able to hit this endpoint without the 2FA header now?
still requesting the token:
{
"errors": [
{
"id": "two_factor_required",
"message": "Two-step verification code required to complete this request. Re-play the request with CB-2FA-Token header."
}
]
}
@brianddk Looking at the SIWC docs, it seems that it is expected for 2FA to be required for this endpoint. Closing out this PR since we do not plan on supporting SIWC in this SDK for now.
Have you been able to access this endpoint before without 2FA token, or has this always been the case?
@brianddk thank you again for flagging. This was indeed a bug in our service. A fix has now been pushed and you should not need the 2FA token header for this endpoint anymore.
A fix has now been pushed and you should not need the 2FA token header for this endpoint anymore.
Confirmed... Thanks.
You might want to let your contact in the API-dev team know that the update bugged the /v2/user/auth
endpoint. It now shows "method": null
in the response JSON when CDP keys are used on it.
Thanks for that. That is now fixed as well.
Thanks for that. That is now fixed as well.
Confirmed. Thx again.
With the April 2nd expansion of the CDP api keys to support SIWC urls, there is extra support needed for the
/v2/accounts/:account_id/transactions
endpoints. This appears to be a holdover from the OAuth2 support, and may actually be an error in the API. If not, support is needed for thetransactions
endpoints. Specifically, posts this endpoint requires theCB-2FA-Token
header. This PR adds acb_2fa_token
argument to theRESTClient
constructor to facilitate that.Example
Changes
CB-2FA-TOKEN
header whencb_2fa_token
is found in instanceCB_2FA_TOKEN_ENV_KEY
constantcb_2fa_token
to APIBase constructorcb_2fa_token
to RESTClient constructor