In this tutorial we will set up IdentityServer with ASP.NET Core Identity Core from the absolute beginning. Also the ASP.NET Identity is configured with a MongoDB database. When a client comes to IdentityServer for authentication, the client’ credentials will be checked by ASP.NET Core Identity in the MongoDB database. We are going to implement all this along with a Web API secured with IdentityServer, so sit tight and enjoy this tutorial.
We will create a complete project from scratch and it’s source codes can be downloaded from my GitHub repository.(more…)
In this tutorial we will implementASP.NET Core Identity with MongoDB as the database. So, the MongoDB will be the Identity Database instead of SQL Server. First, we will configure Identity to use MongoDB as the database and after that create an example project where Identity Users and Roles will be created. In the end, Login and Logout feature will be added so that users can be authenticated to secured portions on the website.(more…)
ZXing.NET is a library which supports decoding and generating of barcodes (like QR Code, PDF 417, EAN, UPC, Aztec, Data Matrix, Codabar) within images. In this tutorial I will implement it in ASP.NET Core application.(more…)
This tutorial is about JWT Refresh Token, what is does, how to generate it and how to use it with JWT Access Tokens. Most probable this tutorial will clear all your doubts about JWT access tokens and refresh token. We are also going to implement it on our ASP.NET Core app. The source codes can be obtained by the download link which is given at the bottom of this tutorial.(more…)
Kubernetes ensures that the App running in Pods is healthy. If there is some problem with the App then it restarts the Pod based on the restart policy set for the Pod. The question now is how k8s detects an un-healthy app? The answer is through Probes.(more…)
Deploying apps on Kubernetes could be a job full of problems so we need HELM. HELM is a superhero like “He-Man”.(more…)
Persistent Volumes (PV) are storages in the Kubernetes cluster which are persistent in nature. The PV has a lifecycle independent of any individual pod which is using the PV. A Persistent Volume remains outside the Pod unlike emptyDir volume (emptyDir remains inside the Pod) so even if a Pod crashes there is no risk of the volume getting ruined.(more…)
Kubernetes volume is a directory, containing some files, which is accessible to all containers in a Pod. Files to this directory can be mounted from outside the Pod and so if the Pod or Containers crash then also this directory and it’s contents remain safe.(more…)
Suppose you have a Multi-Container ASP.NET Core app and you want to host it on Kubernetes Pods. Then you may ask how to do this? The answer is – host the containers on different k8s Pods then add a Service to expose a pod. Then second Pod will then access this service to communicate with first Pod.
In this tutorial I will host a Multi-Container ASP.NET Core app to a single Pod in Kubernetes. The ASP.NET Core app will have 2 containers and these containers will also communicate with each other. I will show you how this communication will take place inside the Pod.(more…)