Skip to content

fix(action-token): let a claim name the wallet that receives - #605

Merged
dadiorchen merged 1 commit into
Greenstand:keycloakfrom
samwel141:fix-redeem-wallet-855
Oct 1, 2026
Merged

dadiorchen merged 1 commit into
Greenstand:keycloakfrom
samwel141:fix-redeem-wallet-855

Conversation

@samwel141

@samwel141 samwel141 commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Closes Greenstand/treetracker-wallet-app#855

Problem

The app sends the wallet on every claim, and the schema stopped accepting it, so every claim answered 422 "wallet" is not allowed. Claiming a share link is broken outright, not just routed to the wrong wallet.

Change

Redeem accepts wallet again and checks it with canActFor: the account id first, falling back to a manage trust for wallets that carry no keycloak id. Absent the field, the login wallet still receives, as before.

Same shape as #596 on the generate side.

Also unblocks

Greenstand/treetracker-wallet-app#896, which lets a claimer choose the destination wallet and cannot work without this field.

Verification

  • Unit 243, integration 122, repository 30, eslint clean.
  • Four new integration tests: the wallet name is accepted, tokens land in a wallet just created rather than the login wallet, no name still uses the login wallet, and a wallet of another account is refused.

The app sends the wallet on every claim, and the schema stopped accepting
it, so Joi rejected the request and every claim answered 422 "wallet is
not allowed".

Redeem accepts it again and checks it with canActFor: the account id
first, falling back to a manage trust for wallets that carry no keycloak
id. Absent the field, the login wallet still receives, as before.

This is also what the app needs to honour the wallet a visitor just
created to claim into, which was the original report.

Closes Greenstand/treetracker-wallet-app#855
@dadiorchen
dadiorchen merged commit 09e5de1 into Greenstand:keycloak Oct 1, 2026
1 check passed
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.44.0-keycloak.40 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants