ProjectLibertyLabs / gateway

Gateway microservices for DSNP/Frequency
https://projectlibertylabs.github.io/gateway/
Apache License 2.0
4 stars 1 forks source link

Gateway should validate handle before adding the transaction to the queue and returning 201 #676

Closed mattheworris closed 6 days ago

mattheworris commented 1 week ago

Steps to reproduce

  1. Use SIWF v2 to create a new user.
  2. Request a handle that is longer than 20 characters. NOTE: This is time sensitive, the SIWF UI will be updated not to allow invalid lengths.
  3. Observe that the claim handle transaction fails.

Expected behavior

The account-service-api should validate the handle using the validateHandle RPC before queueing any transactions.

If the handle is invalid return a 400 BAD REQUEST.