View Issue Details

IDProjectCategoryView StatusLast Update
0010118Talermerchant backendpublic2025-06-24 22:29
ReporterChristian Grothoff Assigned ToChristian Grothoff  
PrioritynormalSeverityfeatureReproducibilityN/A
Status assignedResolutionopen 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product Versiongit (master) 
Target Version1.3 
Summary0010118: merchant backend should have API to list and revoke access tokens
DescriptionWe probably also want to extend the /token endpoint to allow the user to give a human-readable name to each token.
TagsNo tags attached.

Relationships

related to 0009644 confirmed bank ui should support listing and revoking tokens 
related to 0010108 feedbackChristian Grothoff customer unable to extract authorization token for WooCommerce integration 

Activities

Christian Grothoff

2025-06-21 21:19

manager   ~0025293

We should ideally make sure the API does not differ from the same API of the bank (see 0009644)

schanzen

2025-06-22 23:16

administrator   ~0025309

Work started in dev/schanzen/issue_10118.
Descripton and serial columns had to be added to the tokens DB.
We deviate from the Bank API because we return the serial as "serial" and not "row_id" row ID seems semantically incorrect.

schanzen

2025-06-22 23:17

administrator   ~0025310

Open tasks:

- Test description (it works but needs proper test)
- Test pagination

Remaining effort: approx 4h

schanzen

2025-06-23 08:11

administrator   ~0025315

API for deletion by serial added, including tests.
Pagination tests added.
Documentation added.

Ready for review.
Major point: Name of pagination argument in this API is "serial". In core bank it is "row_id".

schanzen

2025-06-24 22:29

administrator   ~0025351

I just noticed while browsing issues that 0010108 actually requires an API that returns the token itself. Currently, we do NOT return the token in plain text.
This is because I modeled it after the Bank API, for which this is also the case. Adding the token field is trivial, if wanted/needed.

Issue History

Date Modified Username Field Change
2025-06-21 21:18 Christian Grothoff New Issue
2025-06-21 21:18 Christian Grothoff Relationship added related to 0009644
2025-06-21 21:19 Christian Grothoff Note Added: 0025293
2025-06-21 21:19 Christian Grothoff Status new => confirmed
2025-06-21 21:19 Christian Grothoff Target Version 1.1 => 1.3
2025-06-21 22:32 schanzen Assigned To => schanzen
2025-06-21 22:32 schanzen Status confirmed => assigned
2025-06-22 23:16 schanzen Note Added: 0025309
2025-06-22 23:17 schanzen Note Added: 0025310
2025-06-23 08:10 schanzen Assigned To schanzen => Christian Grothoff
2025-06-23 08:11 schanzen Note Added: 0025315
2025-06-24 22:28 schanzen Relationship added related to 0010108
2025-06-24 22:29 schanzen Note Added: 0025351