ASP.NET Core Identity, JWT and Application Security
Learn how to secure ASP.NET Core applications using Identity, JWT, authentication, authorization, roles, claims, policies, access tokens and refresh tokens through practical examples.

Building a functional web application is not enough for modern software projects. User accounts, permissions, API access and sensitive information must also be managed securely.
This course provides a practical introduction to authentication and authorization in ASP.NET Core applications.
You will learn how to implement user registration, login, password management, roles, claims and authorization mechanisms using ASP.NET Core Identity. The course then introduces JWT-based authentication for securing REST APIs, including access tokens, refresh tokens and token validation.
Throughout the course, important concepts such as Authentication versus Authorization, Role-Based Authorization, Claim-Based Authorization, Policy-Based Authorization, Cookie Authentication and JWT Bearer Authentication are covered through real-world examples.
Additional application security topics including CORS, rate limiting, HTTP security practices and secure password management are also introduced.
The goal of this course is not only to build a working login system, but to provide participants with the knowledge required to design secure, maintainable and scalable authentication infrastructures for modern web and API applications.
What you will learn
Course lessons
- 1Authentication and Authorization FundamentalsLearn Authentication, Authorization, the ASP.NET Core security pipeline, and how users, roles, claims, policies, sessions, and tokens relate.35 dk
- 2Integrating Identity into an ASP.NET Core ProjectLearn how to add ASP.NET Core Identity to a project using MSSQL and Entity Framework Core, configure a custom user, create IdentityDbContext, and apply migrations.55 dk
- 3User Registration, Login and LogoutLearn how to implement user registration, login and logout with ASP.NET Core Identity, including validation, password policies, failed-login handling and secure authentication cookies.50 dk
- 4Secure Password and Account ManagementConfigure ASP.NET Core Identity password policies and securely implement password changes, password resets, failed-login limits and account lockout.55 dk
- 5Cookie Authentication and MVC Page ProtectionLearn how to configure Cookie Authentication in ASP.NET Core MVC, protect pages, manage redirects and persistent sessions, and implement secure sign-out behavior.40 dk
- 6Managing Users, Roles and ClaimsLearn how to manage users and roles with ASP.NET Core Identity, assign roles, and use user-specific claims for fine-grained authorization.45 dk
- 7Role-Based and Claim-Based AuthorizationLearn how to protect ASP.NET Core MVC and API endpoints with roles, claims, and policy-based authorization rules.45 dk
- 8Policy-Based Authorization and Custom RequirementsUse custom authorization requirements and handlers to combine claims, roles and resource data for age, department, permission and ownership rules.45 dk
- 9JWT Bearer Authentication for REST APIsThis lesson demonstrates how to configure JWT Bearer Authentication in an ASP.NET Core REST API, including token generation, signing keys, issuer, audience, expiration and middleware validation.75 dk
- 10Generating and Validating Access TokensLearn how to generate access tokens in ASP.NET Core APIs, include user roles and claims in JWTs, configure validation parameters, and test protected endpoints with Swagger.70 dk
- 11Implementing a Refresh Token MechanismBuild a secure session renewal flow with short-lived access tokens and long-lived refresh tokens, including storage, rotation, revocation and reuse detection.45 dk
- 12Endpoint Authorization and Resource OwnershipThis lesson protects API endpoints with roles, claims, policies and resource ownership. It also covers object-level access control, 401 and 403 responses, and secure error contracts.45 dk
- 13Secure Client Requests and CORSLearn to send secure requests to JWT-protected APIs, transmit and renew bearer tokens, and configure ASP.NET Core CORS precisely.45 dk
- 14Rate Limiting and HTTP Security ConfigurationLearn how to configure rate limiting, HTTPS, HSTS, secure cookies and essential HTTP security headers in ASP.NET Core applications.35 dk
- 15Security Vulnerabilities, Testing and Production ReadinessReview common authentication and authorization weaknesses, test security controls, and prepare an ASP.NET Core production checklist.70 dk