Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Platform-D Webapp Login with OID4VC to support multiple wallets

see Northern Block demo for more context. Use their wallet for best results

Sequence Diagram

sequenceDiagram

    autonumber

    participant Platform-D API (Gayadeed)
    participant Platform-D Webapp
    actor Vectis Wallet

    participant Vectis API
    participant Gayadeed API/DB


    Note over Vectis Wallet: User Logged in (has Gayadeed token)

    Platform-D Webapp ->> Vectis Wallet: Request VP on Vectis iframe
    Vectis Wallet ->> Vectis Wallet: Approve request
    Vectis Wallet ->> Vectis API: Request VP with Gayadeed token
    Vectis API ->> Gayadeed API/DB: Request: VP with Gayadeed token
    Gayadeed API/DB ->> Gayadeed API/DB: Derive VP
    Gayadeed API/DB ->> Vectis API: Response: VP token with presentations
    Vectis API ->> Vectis Wallet: VP token with presentations
    Vectis Wallet ->> Platform-D Webapp: Response with VP token
    Platform-D Webapp ->> Platform-D API (Gayadeed): Request to verify VP
    Platform-D API (Gayadeed) ->> Platform-D Webapp: Approved and with token and user data

For step 2: Please see [Nortern Block demo] to show requested data

Verifier Request VP

Example QR code for requesting verifiable presentation:

openid-initiate-issuance://?
issuer=https://agent.openid4vci.nborbit.io
&credential_type=Gym Membership
&pre-authorized_code=
4688babc-5025-458a-91bb-b915c7a1d150.8068ef1d-07b7-4e30-8604-b4382489b272.d294fc0b-5ced-473d-8e03-a84e3be66e53