Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1.06 KB

README.md

File metadata and controls

20 lines (16 loc) · 1.06 KB

XUMM PKCE demo

This Java project demos following operations using XUMM-App:

  • Sign in with XUMM using OAuth2 PKCE on a desktop software
  • Send payment signing request to XUMM
  • Observe/Monitor state of sent signing request

Steps to use this code

  1. Create an application in Xumm Developer Console
    1. Under "Settings / Origin/Redirect URIs" enter "http://127.0.0.1:58890/auth"
  2. Enter "API-Key" in Main.java (apiKey)

Hints

  • Use a storage (like MemoryStorage) to store accessToken for further usage. accessToken may expire at any time.
  • OAuth2PkceAuthentication.java runs temporary a HttpServer on 127.0.0.1 listening on port 58890
  • Set scope variable in Main.java to your own software name

Useful documents