I have a binary trading application on the stock exchange. I am providing an api so that my clients can feed a specific table from the database through this api, but I would like to add the security of a token in the header so that without this token the person cannot send data through the api. I would like to know how to do this.
Iām generating JWTs for the authentication:
https://tbvgl.medium.com/using-json-web-tokens-jwt-with-wappler-part-1-b13a52e9f37b
And you can read the auth header from the Server values in your workflow and then verify the JWT. {{$_SERVER.Authorization}}
2 Likes