c#(.Net) — Basic Authentication API (en)

Semih Çelikol
6 min read1 hour ago
Photo by Walkator on Unsplash

Hello friends, in this post, I will talk about the Basic Authentication structure in .Net Web API. I will try to explain what Basic Authentication is and what it is not. I will show How to I use Basic Authentication in Asp.Net Core Web API.

Basic Authentication: It is one of the authorization methods. That is, it is a type of encrypted connection that we specify in the Authorization key in the Header while making a request to an API.

It is easy to use but weak in terms of security. Since it can be easily accessed when a request is made from the client, it is generally used for tasks not open to end-users. In other words, we can say that Basic Authentication is more commonly used for operations between internal applications within an organization.

Let’s move on to our example.

I am opening an ASP.NET Core Web API project.

ASP.NET Core WEB API

I am specifying the project name and path.

Configure your new project

--

--

No responses yet