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