Level 74
You can but it's not a a good idea.
I suggest you take a look at Sanctum
I have simple API, that is waiting for incoming POST request with JSON data.
Can I just put into incoming data some static token and verify myself like that? For general use it is good enough?
{
"token" : "myPassword123",
//rest of the useful data
}
i've sometimes used this to send analytics messages from one of my apps to another of my apps
in the environment of each I set a long and random string as a ' shared secret'
Please or to participate in this conversation.