How do I add Basic Authentication to Web API?

In IIS Manager, go to Features View, select Authentication, and enable Basic authentication. In your Web API project, add the [Authorize] attribute for any controller actions that need authentication. A client authenticates itself by setting the Authorization header in the request.

Sizin İçin Seçtik  How do you call BLoC Flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *