For securing APIs in ASP.NET Core, which authentication method is recommended?
- Basic Authentication
- Windows Authentication
- Token-based Authentication
- Digest Authentication
For securing APIs in ASP.NET Core, token-based authentication is recommended. Token-based authentication, often using technologies like OAuth 2.0 or JWT (JSON Web Tokens), provides a secure and scalable way to authenticate and authorize users for API access. It's widely adopted for modern API security scenarios.
Loading...
Related Quiz
- After setting up your ASP.NET Core development environment, you need to ensure that the application can be containerized. What would be your primary focus when adjusting the development setup?
- Imagine you're developing an ASP.NET Core application on a machine without any internet access. Which tool, among the following, allows you to install NuGet packages from a local feed or folder?
- Your team is starting a new project where you have an existing database, and you wish to generate your data models based on this database. Which approach in Entity Framework Core would be most suitable?
- You are building a blog application where only the blog author should be able to edit or delete a post. How would you use the [Authorize] attribute to achieve this behavior?
- What was one of the main criticisms or challenges faced by developers with project.json leading to its replacement?