Securing .NET 5 Microservices with IdentityServer4 with OAuth2, OpenID Connect and Ocelot Api Gateway

Mehmet Ozkaya
2 min readDec 3, 2020

I have just published a new course — “Securing .NET 5 Microservices with IdentityServer4 with OAuth2, OpenID Connect and Ocelot Api Gateway

In the course, we are securing .Net 5 microservices with using standalone Identity Server 4 and backing with Ocelot API Gateway. We’re going to protect our ASP.NET Web MVC and API applications with using OAuth 2 and OpenID Connect in IdentityServer4. Securing your web application and API with tokens, working with claims, authentication and authorization middlewares and applying policies, and so on.

Through 76 lectures and 5.5 hours worth of HD-quality content, you’re going to journey through some of the deepest depths of the security in microservices — experiencing all the development steps of run-aspnet-identityserver4 repository on github.

As a token of my appreciation for your support, I will also be offering a LIMITED BEST PRICE OFF DISCOUNT FOR YOU at the launch. This offer EXPIRES IN 5 DAYS.


This course will led you get started securing your ASP.NET based microservices applications with IdentityServer4 using OAuth 2 and OpenID Connect on distributed microservices architecture. And Also you’ll learn how to secure protected APIs backing with Ocelot API Gateway in a microservices architecture.

In the last section, we will give an assignment for security operations with identity server integration for an existing microservices reference application. We had developed run-aspnetcore-microservices reference application before this course. We will extend this application with IdentityServer OAuth 2.0 and OpenId Connect features with adding new Identity Server Microservice.

By the end of this course, you will have a practical understanding of how to secure .Net 5 Microservices with IdentityServer4 using OAuth2, OpenID Connect and Ocelot Api Gateway.

Below some useful links;
Check the Code on Github ->
Check Explanation of this Microservices Repository on Medium ->



Mehmet Ozkaya

Software Architect | Udemy Instructor | AWS Community Builder | Cloud-Native and Serverless Event-driven Microservices