Basic authentication
The most basic authentication mechanism uses HTTP Basic Auth to authenticate requests. Developers rarely use it because it has some drawbacks, mainly because you send user credentials repeatedly and don’t have the concept of sessions easily associated with it.
For this, the client sends the Authorization header to the server with something such as Basic dXNlcjpwYXNzd29yZA==. It is a concatenation of the user and the password separated by : and then converted into base64.
We won’t go further into details or examples because this kind of authentication is rare in APIs and is not considered a good practice.