title: How to authenticate an on demand API call made via splunk?
body: <p>I am thinking of developing an API in Python using Flask library.
  I learnt the below.
  It has a <code>/auth</code> to just take any <code>username</code> and <code>password</code> and <code>save</code> it in database i.e. for registration.
  It has a <code>/login</code> to take <code>username</code>, <code>password</code> and <code>validate</code> it with database and then send a <code>token</code>.
  It then has a <code>/xx</code> call to take the <code>token</code>, <code>validate</code> the identity of user and return him with the requested <code>data</code>.</p>
  <p>I am now trying to understand the below.<br />
  If I make an API call via custom script execution on SPLUNK to this API that I will develop, how will I pass <code>Splunk</code> login credentials to the API and how will the API make sure that they are correct?</p>