Secure .Net Microservices with IdentityServer4 OAuth2,OpenID

Securing .Net Microservices with IdentityServer4 using OAuth2, OpenID Connect and Ocelot API Gateway

Created by Mehmet Ozkaya
Udemy 5h 30m 9,210 enrolled English4.5

What you'll learn

βœ“Building IdentityServer4 Authentication Microservice
βœ“Get Token from Identity Server with client_credentials grant_type
βœ“Protecting API with Using IdentityServer4 OAuth 2.0 and JWT Token
βœ“OpenID Connect with IdentityServer4 For Interactive MVC Client Micorservice
βœ“IdentityServer4 OpenID Connect Integration For Client MVC Interactive Client Application
βœ“Consume Protected API with HttpClientFactory From Client Application
βœ“Adding the UI for OpenID Connect Login, logout, consent and error
βœ“Hybrid Flow of IdentityServer4 Secure Interactive Mvc Client (OpenID) and Api Resources (OAuth2)
βœ“Claim Based Authorization in IdentityServer4 Secure Interactive MVC Client (OpenID) and API Resources (OAuth2)
βœ“Ocelot API Gateway Implementation for MVC Client to Interact w/ IdentityServer4 and Carry Token
βœ“Secure Existing Microservices Reference Application w/ Adding IS4 Integration onto Ocelot and APIs
βœ“Claim Based Authentication with client_id Claim Restriction
βœ“Securing API with JWT Bearer Token Authentication
βœ“Build OpenId Connect Interactive Client for Client MVC Application
βœ“Developing HttpHandler for Getting Token from IDPClient with IHttpClientFactory
βœ“Securing Ocelot API Gateway with Bearer Token

Requirements

  • C# knowledge
  • Aspnet core basics knowledge

About this course

You will learn how to secure 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.

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.

Check the overall picture

You can see that we will have 4 Aspnet core microservices project which we are going to develop one by one and together.

Movies.API

First of all, we are going to develop Movies.API project and protect this API resources with IdentityServer4 OAuth 2.0 implementation. Generate JWT Token with client_credentials from IdentityServer4 and will use this token for securing Movies.API protected resources.

Movies.MVC

After that, we are going to develop Movies.MVC Asp.Net project for Interactive Client of our application. This Interactive Movies.MVC Client application will be secured with OpenID Connect in IdentityServer4. Our client application pass credentials with logging to an Identity Server and receive back a JSON Web Token (JWT).

Identity Server

Also, we are going to develop centralized standalone Authentication Server and Identity Provider with implementing IdentityServer4 package and the name of microservice is Identity Server.

Identity Server4 is an open source framework which implements OpenId Connect and OAuth2 protocols for .Net Core.

With Identity Server, we can provide authentication and access control for our web applications or Web APIs from a single point between applications or on a user basis.

Ocelot API Gateway

Lastly, we are going to develop Ocelot API Gateway and make secure protected API resources over the Ocelot API Gateway with transferring JWT web tokens. Once the client has a bearer token it will call the API endpoint which is fronted by Ocelot. Ocelot is working as a reverse proxy.

After Ocelot re-routes the request to the internal API, it will present the token to Identity Server in the authorization pipeline. If the client is authorized the request will be processed and a list of movies will be sent back to the client.

Also over these overall picture, we have also apply the Claim based authentications.

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

Secure Existing 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.

Is this course for you?

This course is very practical, about 90%+ of the lessons will involve you coding along with me on this project. If you are the type of person who gets the most out of learning by doing, then this course is definitely for you.

Tools you need for this course

In this course all the lessons are demonstrated using Visual Studio 2019 as a code editor. You can of course use any code editor you like and any Operating system you like as long as it's Windows or Mac.

Related coupons

Udemy Course Reviews

Udemy Coupon Insights for Secure .Net Microservices with IdentityServer4 OAuth2,OpenID

This Udemy coupon unlocks a guided path into Secure .Net Microservices with IdentityServer4 OAuth2,OpenID, so you know exactly what outcomes to expect before you even press play.

Mehmet Ozkaya leads this Udemy course in IT & Software, blending real project wins with step-by-step coaching.

The modules are sequenced to unpack Identity and Access Management (IAM) step by step, blending theory with scenarios you can reuse at work while keeping the Udemy course reviews tone in mind.

Video walkthroughs sit alongside quick-reference sheets, checklists, and practice prompts that make it easy to translate the material into real projects, especially when you grab Udemy discounts like this one.

Because everything lives on Udemy, you can move at your own pace, revisit lectures from any device, and pick the payment setup that fits your budgetβ€”ideal for stacking extra Udemy coupon savings.

Mehmet Ozkaya also keeps an eye on the Q&A and steps in quickly when you need clarity. You'll find fellow learners trading tips, keeping you motivated as you sharpen your IT & Software skill set with trusted Udemy discounts.

Ready to dive into Secure .Net Microservices with IdentityServer4 OAuth2,OpenID? This deal keeps the momentum high and hands you the tools to apply Identity and Access Management (IAM) with confidence while your Udemy coupon is still active.

Frequently Asked Questions

Is Secure .Net Microservices with IdentityServer4 OAuth2,OpenID free with coupon?
Yes, Secure .Net Microservices with IdentityServer4 OAuth2,OpenID is currently available with our exclusive coupon code "DECE25" for significant savings.
How do I apply the Secure .Net Microservices with IdentityServer4 OAuth2,OpenID discount code?
Simply click the "Enroll Now" button on this page. The coupon code will be automatically applied at checkout.
What will I learn in Secure .Net Microservices with IdentityServer4 OAuth2,OpenID?
In Secure .Net Microservices with IdentityServer4 OAuth2,OpenID, you'll learn Securing .Net Microservices with IdentityServer4 using OAuth2, OpenID Connect and Ocelot API Gateway. This Udemy course provides practical, hands-on training.
How long do I have access to Secure .Net Microservices with IdentityServer4 OAuth2,OpenID?
Once enrolled, you get lifetime access to Secure .Net Microservices with IdentityServer4 OAuth2,OpenID. You can complete the course at your own pace.
Is Secure .Net Microservices with IdentityServer4 OAuth2,OpenID a Udemy course?
Yes, Secure .Net Microservices with IdentityServer4 OAuth2,OpenID is a comprehensive Udemy course with lifetime access and certificate of completion.