title: How to secure dialogflow webhook(using firebase functions)?
body: <p>I am developing a dialogflow agent with its fulfillment webhook in firebase functions(using Actions on Google Client Library). How can I secure it to let only my agent has access to these functions?</p>
  
  <p>I read the following document, but it didn't provide any further details on their implementation.</p>
  
  <p><a href="https://dialogflow.com/docs/fulfillment/configure#authentication" rel="nofollow noreferrer">https://dialogflow.com/docs/fulfillment/configure#authentication</a></p>
  
  <pre><code>It's important to secure your webhook to prevent unwanted, potentially malicious calls. Dialogflow supports two mechanisms for authentication:
  
  Basic authentication with login and password.
  Authentication with additional authentication headers.
  </code></pre>