Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wallet provider APIs / update PIN code #2715

Open
ThierryThevenet opened this issue Jun 11, 2024 · 0 comments
Open

wallet provider APIs / update PIN code #2715

ThierryThevenet opened this issue Jun 11, 2024 · 0 comments
Assignees

Comments

@ThierryThevenet
Copy link
Member

ThierryThevenet commented Jun 11, 2024

IN PROGRESS

User changes the PIN code

If user updates his PIN code, wallet must request the wallet provider back end to update the PIN code in the user data base.

Check the flow https://swimlanes.io/u/Rt5vg-FWI

  1. User requests to change PIN code
  2. Wallet calls /nonce endpoint
    same as previously
  3. Wallet calls the /token endpoint
    same as previously with 3 trials maximum
  4. Wallet requests new PIN code
  5. Wallet calls /update-pin endpoint
    with DPoP built and signed as previously
POST /update-pin HTTP/1.1
Host: wallet-provider.talao.co 
Authorization: Bearer <token>
DPoP: eyljkglkjglkjglkjkjhljkhlhh
Content-Type: 'application/x-www-form-urlencoded'

salted_pin_code = "kjhgkjhgjhg"

the salted_pin_code is the new one.

The wallet provider back end updates its user base with the new salted_pin_code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant