This is primarily aimed at first- and second-year undergraduates interested in engineering or science, along with high school students and professionals with an interest in programming.n this course, learners will expand their ASP.NET expertise by building APIs, working with middleware, and deploying applications. You’ll design RESTful APIs, work with JSON data, and practice deployment to Azure with a focus on scalability, performance, and security.

Security, Testing, and Deployment

Security, Testing, and Deployment
This course is part of Microsoft Getting Started with ASP.NET Core Professional Certificate

Instructor: Microsoft
Skills you'll gain
Details to know

Add to your LinkedIn profile
20 assignments
See how employees at top companies are mastering in-demand skills

Build your Mobile and Web Development expertise
- Learn new concepts from industry experts
- Gain a foundational understanding of a subject or tool
- Develop job-relevant skills with hands-on projects
- Earn a shareable career certificate from Microsoft

There are 5 modules in this course
In this module, you will learn to implement comprehensive security solutions for ASP.NET Core applications using authentication and authorization strategies that protect user data and system resources. You'll explore the ASP.NET Core Identity framework and understand how it provides robust user management, secure password handling, and extensible authentication workflows out of the box. Through hands-on practice, you'll build complete authentication systems including user registration, email confirmation, login processes, and password reset functionality while maintaining excellent user experience. You'll implement both role-based and policy-based authorization to create granular access controls that enforce business rules and security requirements. You'll also secure API endpoints using JWT authentication, enabling token-based security for modern web applications and mobile clients. By the end of this module, you'll be able to design and implement enterprise-grade security architectures that protect sensitive resources while providing seamless user experiences, following industry best practices for authentication flows and authorization patterns.
What's included
9 videos4 readings4 assignments3 ungraded labs
9 videos•Total 51 minutes
- Why Authentication and Authorization Matter in Modern Web Applications•4 minutes
- How to Set Up ASP.NET Core Identity in Your Application – Part 1•6 minutes
- How to Set Up ASP.NET Core Identity in Your Application – Part 2•4 minutes
- Why User Experience Matters in Authentication Design•3 minutes
- How to Build Complete Authentication Workflows – Part 1•7 minutes
- How to Build Complete Authentication Workflows – Part 2•7 minutes
- Why Granular Access Control Is Essential for Application Security•3 minutes
- How to Implement Role-Based Authorization – Part 1•7 minutes
- How to Implement Role-Based Authorization – Part 2•8 minutes
4 readings•Total 50 minutes
- What You Need to Know: ASP.NET Core Identity Framework•10 minutes
- Course Syllabus•10 minutes
- What You Need to Know - User Registration and Login Workflows•10 minutes
- What You Need to Know: Authorization Strategies in ASP.NET Core•20 minutes
4 assignments•Total 95 minutes
- Practice Quiz: Introduction to ASP.NET Core Identity•15 minutes
- Practice Quiz: Implementing User Authentication•15 minutes
- Practice Quiz: Role-Based and Policy-Based Authorization•15 minutes
- Graded Quiz: Authentication and Authorization•50 minutes
3 ungraded labs•Total 100 minutes
- Configure ASP.NET Core Identity for a Web Application•20 minutes
- Build a Complete User Authentication System•20 minutes
- Implement Multi-Level Authorization in a Web Application•60 minutes
In this module, you will learn to protect ASP.NET Core applications from common security threats and implement industry-standard security practices that safeguard user data and system integrity. You'll explore the most prevalent web vulnerabilities including SQL injection, cross-site scripting (XSS), and cross-site request forgery (CSRF), understanding how these attacks work and how to prevent them using ASP.NET Core's built-in security features. Through hands-on practice, you'll configure HTTPS and secure communication channels, implement SSL/TLS certificates, and apply security headers that protect data in transit. You'll work with deliberately vulnerable applications to identify and remediate security flaws, gaining practical experience in security testing and vulnerability assessment. You'll also implement security best practices in middleware components and integrate comprehensive API documentation using OpenAPI/Swagger with proper security configurations. By the end of this module, you'll be able to conduct security assessments, implement defense-in-depth strategies, and build applications that meet enterprise security standards while maintaining functionality and performance.
What's included
10 videos6 readings5 assignments3 ungraded labs1 plugin
10 videos•Total 67 minutes
- Why Web Security Matters in ASP.NET Core•3 minutes
- How to Identify and Fix Security Vulnerabilities•9 minutes
- Why HTTPS is Essential for Modern Web Applications•4 minutes
- How to Configure HTTPS in ASP.NET Core Applications – Part 1•10 minutes
- How to Configure HTTPS in ASP.NET Core Applications – Part 2•7 minutes
- Designing Middleware for Performance•5 minutes
- Securing Middleware•4 minutes
- Designing and Securing Middleware Components•8 minutes
- Introduction to OpenAPI and Swagger•5 minutes
- Integrating Swagger with ASP.NET Core•14 minutes
6 readings•Total 105 minutes
- What You Need to Know - Common Web Security Vulnerabilities•10 minutes
- What You Need to Know: HTTPS and SSL/TLS in ASP.NET Core•15 minutes
- Designing Middleware for Performance•30 minutes
- Securing Middleware•10 minutes
- You Try It! Designing and Securing Middleware Components - Answer Key•10 minutes
- OpenAPI (Swagger) Integration•30 minutes
5 assignments•Total 110 minutes
- Practice Quiz: Common Web Security Threats•15 minutes
- Practice Quiz: HTTPS and Secure Communication•15 minutes
- Practice Quiz: Best Practices for Middleware Design•15 minutes
- Practice Quiz: OpenAPI (Swagger) Integration•15 minutes
- Graded Quiz: Securing Web Applications•50 minutes
3 ungraded labs•Total 180 minutes
- Secure a Vulnerable ASP.NET Core Application•60 minutes
- Implement Complete HTTPS Configuration•60 minutes
- You Try It! Designing and Securing Middleware Components•60 minutes
1 plugin•Total 15 minutes
- Guided Lab: Designing and Securing Middleware Components•15 minutes
In this module, you will learn to build reliable, maintainable ASP.NET Core applications through comprehensive testing strategies that ensure code quality and prevent regressions. You'll explore the fundamentals of unit testing using xUnit framework, understanding how to structure test projects and write effective tests that follow the AAA (Arrange, Act, Assert) pattern. Through hands-on practice, you'll test controllers, services, and business logic components while learning to handle dependencies and error conditions appropriately. You'll implement integration tests using WebApplicationFactory to verify complete application workflows, including API endpoints, database operations, and middleware interactions. You'll also master test-driven development (TDD) principles, learning the Red-Green-Refactor cycle that leads to better code design and increased confidence in changes. You'll work with mocking frameworks to isolate components during testing and learn to balance test coverage with development efficiency. By the end of this module, you'll be able to implement comprehensive testing strategies that serve as both quality assurance and living documentation, enabling you to refactor and extend applications with confidence while maintaining high standards of code reliability.
What's included
12 videos4 readings5 assignments4 ungraded labs
12 videos•Total 63 minutes
- Why Testing Matters in ASP.NET Core Development•4 minutes
- How to Set Up Your First Unit Test Project – Part 1•5 minutes
- How to Set Up Your First Unit Test Project – Part 2•6 minutes
- Why Good Unit Tests Make Better Developers•3 minutes
- How to Test Controllers and Business Logic – Part 1•6 minutes
- How to Test Controllers and Business Logic – Part 2•6 minutes
- Why Integration Tests Complete the Picture•3 minutes
- How to Create Integration Tests for APIs – Part 1•8 minutes
- How to Create Integration Tests for APIs – Part 2•6 minutes
- Why TDD Changes How You Think About Code•3 minutes
- How to Practice Test-Driven Development – Part 1•6 minutes
- How to Practice Test-Driven Development – Part 2•7 minutes
4 readings•Total 40 minutes
- What You Need to Know: Unit Testing Fundamentals•10 minutes
- What You Need to Know: Unit Testing Best Practices•10 minutes
- What You Need to Know: Integration Testing in ASP.NET Core•10 minutes
- What You Need to Know: Test-Driven Development Principles•10 minutes
5 assignments•Total 90 minutes
- Practice Quiz: Introduction to Unit Testing•15 minutes
- Practice Quiz: Writing Effective Unit Tests•15 minutes
- Practice Quiz: Integration Testing Strategies•15 minutes
- Practice Quiz: Test-Driven Development•15 minutes
- Graded Quiz: Testing ASP.NET Core Applications•30 minutes
4 ungraded labs•Total 205 minutes
- Create a Unit Test Foundation•25 minutes
- Build Comprehensive Unit Tests•60 minutes
- Implement End-to-End API Tests•60 minutes
- Develop a Feature Using TDD•60 minutes
In this module, you will learn to deploy ASP.NET Core applications to production environments using modern deployment strategies that ensure reliability, scalability, and maintainability. You'll master the essential preparation steps for production deployment, including environment-specific configuration, connection string management, performance optimization, and containerization with Docker. Through hands-on practice, you'll deploy applications to cloud platforms like Azure App Service, configure custom domains and SSL certificates, and set up monitoring and scaling capabilities. You'll implement continuous integration and deployment (CI/CD) pipelines using GitHub Actions or Azure DevOps that automatically build, test, and deploy your applications while maintaining quality gates and rollback capabilities. You'll also explore .NET Aspire for cloud-native applications, learning to configure service discovery, distributed tracing, and observability features for microservices architectures deployed to Azure Container Apps. By the end of this module, you'll be able to design and implement comprehensive deployment strategies that support modern development workflows, from local development through automated production deployments, ensuring your applications meet enterprise standards for reliability and operational excellence.
What's included
11 videos4 readings5 assignments4 ungraded labs
11 videos•Total 61 minutes
- Why Deployment Preparation Matters•3 minutes
- How to Prepare ASP.NET Core Applications for Production•8 minutes
- Why Cloud Deployment Transforms Modern Development•4 minutes
- How to Deploy ASP.NET Core Applications to Azure App Service – Part 1•6 minutes
- How to Deploy ASP.NET Core Applications to Azure App Service – Part 2•5 minutes
- Why CI/CD Pipelines Are Essential for Modern Development•3 minutes
- How to Create GitHub Actions CI/CD Pipelines – Part 1•8 minutes
- How to Create GitHub Actions CI/CD Pipelines – Part 2•7 minutes
- Why .NET Aspire Revolutionizes Cloud-Native Development•4 minutes
- How to Convert Applications to .NET Aspire and Deploy to Azure – Part 1•7 minutes
- How to Convert Applications to .NET Aspire and Deploy to Azure – Part 2•6 minutes
4 readings•Total 45 minutes
- What You Need to Know: Application Deployment Preparation•10 minutes
- What You Need to Know: Azure App Service and Cloud Deployment•10 minutes
- What You Need to Know: CI/CD Pipelines for ASP.NET Core•15 minutes
- What You Need to Know: .NET Aspire for Cloud-Native Applications•10 minutes
5 assignments•Total 150 minutes
- Practice Quiz: Preparing Applications for Deployment•30 minutes
- Practice Quiz: Cloud Deployment with Azure•30 minutes
- Practice Quiz: Continuous Integration and Deployment•30 minutes
- Practice Quiz: .NET Aspire Deployments•30 minutes
- Graded Quiz: Deployment Strategies•30 minutes
4 ungraded labs•Total 120 minutes
- Configure Multi-Environment Deployment Settings•30 minutes
- Deploy Your Application to Azure App Service•30 minutes
- Implement Complete CI/CD Pipeline•30 minutes
- Build and Deploy a .NET Aspire Application•30 minutes
This project involves developing a secure e-commerce platform with proper authentication, authorization, and security measures. The project will be thoroughly tested and deployed to a cloud environment, demonstrating your ability to create, secure, test, and deploy ASP.NET Core applications.
What's included
1 reading1 assignment1 ungraded lab
1 reading•Total 20 minutes
- Hands-on Course Project: Secure E-commerce Platform–Solutions•20 minutes
1 assignment•Total 90 minutes
- Secure E-commerce Platform - Capstone Project•90 minutes
1 ungraded lab•Total 120 minutes
- Hands-on Course Project: Secure E-commerce Platform•120 minutes
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.
Why people choose Coursera for their career

Felipe M.

Jennifer J.

Larry W.

