Basic Auth

IETF RFC 7617 provides the standard for basic auth. It requires username and password to be sent to the server from the client in the request to ensure the authentication of the sender. Due to the stateless nature of REST API, the server must receive the request with a form of valid authentication. Therefore, when using basic auth, every request shall provide a username and password to the server.

Below are three examples of how to use basic auth to get a list of devices that are in SIP. The main thing to note in the examples is that Basic Auth must be explicitly defined and provided to the server.

Swagger: Basic Auth

A screenshot of a cell phone

Description automatically generated

Postman: Basic Auth

A screenshot of a computer screen

Description automatically generated

Python Script: Basic Auth

A screenshot of a cell phone

Description automatically generated