Skip to content

Add integration test for the wallet authentication challenge endpoint returning a valid Stellar transaction #717

Description

@Chucks1093

Summary

The wallet auth challenge endpoint generates a Stellar transaction that the client must sign to prove wallet ownership. An integration test should confirm the returned transaction is valid, contains the expected nonce memo, and is signed by the server keypair.

Scope

  • Call the challenge endpoint with a valid Stellar wallet address
  • Assert 200 is returned with a base64-encoded Stellar transaction XDR
  • Decode the XDR and assert the transaction contains a web_auth_domain operation
  • Assert the memo is a non-empty nonce that differs between two consecutive calls
  • Assert calling the endpoint with an invalid wallet address returns 422

Acceptance Criteria

  • 200 returned with valid base64 XDR on valid wallet address
  • Decoded transaction contains web_auth_domain operation
  • Nonce memo is non-empty and unique across consecutive calls
  • Invalid wallet address returns 422
  • Transaction signed by the server keypair

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions