million-views / praas

Proxy as a service.
MIT License
4 stars 2 forks source link

Build hidden form field validation #72

Closed 5r1n1 closed 4 years ago

5r1n1 commented 4 years ago

When a request is received by the proxy server, proxy server should validate the request based on the hidden field

The conduit's 'hidden field' definition includes the following fields (from crud-server README):

Property Description
fieldName name of the field
policy drop-if-filled or pass-if-match
include boolean indicating if the field should be sent to the suri
value Value to be matched against the field in case of pass-if-match
  1. If policy is drop-if-filled and field has any value, return error
  2. If policy is pass-if-match and field value does not match the specified value, return error
  3. If neither of above, proceed normally