Avoid Basic Authentication

You should avoid using basic authentication and use any other standard authentication methodologies i.e. OAuth, JWT, etc.

Basic authentication is a simple method for authenticating a user by transmitting the user’s credentials in plain text over the network. This method is inherently insecure and should be avoided whenever possible.

There are several reasons why basic authentication should be avoided and replaced with more secure authentication techniques:

In contrast, other authentication techniques such as OAuth, OpenID Connect, and SAML provide more secure and robust methods for authentication. These methods typically use encrypted protocols to protect the user’s credentials, provide mechanisms for verifying the integrity of the data, and support MFA. As a result, they are much more secure and reliable than basic authentication and should be used whenever possible.