View Issue Details

IDProjectCategoryView StatusLast Update
0009109Talerexchangepublic2024-09-12 00:06
Reportersebasjm Assigned Tosebasjm  
PrioritylowSeverityfeatureReproducibilityalways
Status closedResolutionwon't fix 
Product Versiongit (master) 
Target Version0.14Fixed in Version0.14 
Summary0009109: the exchange should provide the kyc-spa location to the wallet
Descriptionafter the wallet gets a LegitimizationNeededResponse the user should be redirected to the exchange spa

wallet should be able to construct this URL without hardcoding

we may:
1.- return the actual URL in the LegitimizationNeededResponse
2.- return a template in the /config or /keys endpoint (if kyc is enabled)
TagsNo tags attached.

Activities

Christian Grothoff

2024-08-22 14:41

manager   ~0023029

Why? The URL is defined as $BASE_URL/kyc-spa/$ACCESS_TOKEN. What is wrong with this?

sebasjm

2024-08-30 15:14

developer   ~0023120

because having this a spec which the wallet needs to follow is confusing.

I needed to fix a routing problem in the exchange ($BASE_URL/kyc-spa/$ACCESS_TOKEN as returning 404 ) also affecting kyc-spa (the workaround was sending the accToken in the fragment $BASE_URL/kyc-spa/#/token/$ACCESS_TOKEN ) to find out that this was implemented in the wallet (!!) because of the spec.

much saner is to allow the exchange to return `kyc_spa_url` instead of the `access_token` here [1], construct the URL in the exchange (why ask the wallet to do this?)

not a blocker in any sense, moving to 1.0-stretch

[1] https://docs.taler.net/core/api-exchange.html#get--kyc-check-$REQUIREMENT_ROW

Christian Grothoff

2024-09-01 11:49

manager   ~0023124

The access token is more flexible. It allows us to use this value for other endpoints in the future. It also allows us to
define alternative endpoints in future versions of the protocol, and to migrate to those nicely. For example, a future
wallet may directly access and interpret /kyc-info/$ACCESS_TOKEN/, instead of only redirecting to the KYC SPA.
Finally, it reduces bandwidth and redundant data transmission as the client/wallet already knows the exchange base URL and must already understand the endpoint (and its path!) to correctly interact with it.
I really don't see this as a necessary or even positive change!

Christian Grothoff

2024-09-01 11:52

manager   ~0023125

/kyc-spa/$ACCESS_TOKEN should also not 404, unless the access token is invalid. If the SPA cannot do the redirect to /#/token/$ACCESS_TOKEN, I think it's in principle fine to do this in the exchange.

Issue History

Date Modified Username Field Change
2024-08-22 00:03 sebasjm New Issue
2024-08-22 00:03 sebasjm Status new => assigned
2024-08-22 00:03 sebasjm Assigned To => Christian Grothoff
2024-08-22 14:41 Christian Grothoff Note Added: 0023029
2024-08-23 00:25 Christian Grothoff Assigned To Christian Grothoff => sebasjm
2024-08-23 00:25 Christian Grothoff Status assigned => feedback
2024-08-30 15:14 sebasjm Note Added: 0023120
2024-08-30 15:14 sebasjm Target Version 0.14 => 1.0 stretch goals
2024-08-30 15:14 sebasjm Assigned To sebasjm => Christian Grothoff
2024-09-01 11:49 Christian Grothoff Note Added: 0023124
2024-09-01 11:52 Christian Grothoff Note Added: 0023125
2024-09-01 11:52 Christian Grothoff Assigned To Christian Grothoff => sebasjm
2024-09-11 18:43 sebasjm Status feedback => resolved
2024-09-11 18:43 sebasjm Resolution open => won't fix
2024-09-12 00:06 Christian Grothoff Product Version 1.4 => git (master)
2024-09-12 00:06 Christian Grothoff Fixed in Version => 0.14
2024-09-12 00:06 Christian Grothoff Target Version 1.0 stretch goals => 0.14
2024-09-12 00:06 Christian Grothoff Status resolved => closed