How to add authentication on api call trigger
Hi there..
I am making my first steps with Buildship and don't know, how to add an authentication on the API Call trigger.
For exmaple: Allow only webhooks to call the trigger when the correct bearer token is send.
How do I do that?
Solution:Jump to solution
Hey @malte.huener, you can refer to this documentation - https://docs.buildship.com/tutorials/secure-api.
Also, @Your Majesty mentioned right. Yes you can use authorization header to the REST API Call - https://docs.buildship.com/basics/ship-an-api...
3 Replies
Use the get request headers node to check for that particular bearer token header if it exists and proceed accordingly
Same option when I switch to GET..
Nevertheless I need a POST endpoint for facebook webhook, they only accept POST endpoints..
Hi @Your Majesty Now i got it..
But i encouter still an error while trying to check the "hub.verify_token". Can you tell me how to add that field in the editor? see picture..
Thanks in advance!
Solution
Hey @malte.huener, you can refer to this documentation - https://docs.buildship.com/tutorials/secure-api.
Also, @Your Majesty mentioned right. Yes you can use authorization header to the REST API Call - https://docs.buildship.com/basics/ship-an-api