Authentication using HTTP headers

Hi,
We recently noticed a deprecation warning related to Discourse API where we are being asked to use HTTP headers for authentication instead of authenticating using params in the HTTP request.

Can you please give us an example of how to do this in Python where we would receive JSON response.

Thanks
Madhavi

4 Likes

Getting a similar email - is there a migration guide somewhere?

There should be a link to this topic included in the warning message:

There is an example curl command there for using header-based auth

3 Likes