Skip to content

feat(auth): implement SIWS message verification (#108)#264

Open
omonxooo-commits wants to merge 1 commit into
DXmakers:mainfrom
omonxooo-commits:feat/siws-verification
Open

feat(auth): implement SIWS message verification (#108)#264
omonxooo-commits wants to merge 1 commit into
DXmakers:mainfrom
omonxooo-commits:feat/siws-verification

Conversation

@omonxooo-commits
Copy link
Copy Markdown

  • Add NonceStore (in-memory, 5-min TTL, one-time-use) to AppState
  • Decode Stellar G-address via stellar-strkey
  • Verify ed25519 signature over 'lance:auth:'
  • Issue HS256 JWT (24h expiry) on success
  • Add Unauthorized(401) variant to AppError
  • Add JWT_SECRET env var

closes #150

- Add NonceStore (in-memory, 5-min TTL, one-time-use) to AppState
- Decode Stellar G-address via stellar-strkey
- Verify ed25519 signature over 'lance:auth:<nonce>'
- Issue HS256 JWT (24h expiry) on success
- Add Unauthorized(401) variant to AppError
- Add JWT_SECRET env var
Copy link
Copy Markdown
Contributor

@soomtochukwu soomtochukwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls attend to the failed CI checks

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

Successfully merging this pull request may close these issues.

UI: Add Share Job functionality

2 participants