3 ms·
I've seen people use JWT (https://jwt.io/introduction/ https://jwt.io/introduction/) for REST API auth. There are a variety of libraries that implement it and
by RandomOpinion 10y ago
I've seen people use JWT (https://jwt.io/introduction/ https://jwt.io/introduction/) for REST API auth. There are a variety of libraries that implement it and it's fairly simple to use.
Since it's just another HTTP header field, cURL can include it easily enough. Granted, you'll have to generate the encoded token externally but you would have had to do that with any other auth mechanism anyway.