Authentication Middleware in Express Gateway using JWT

Written by vahid | Published 2020/01/30
Tech Story Tags: microservices | api-gateway | authentication | express-gateway | express | javascript | jwt | progra

TLDR In this article, we use Express-Gateway to use jwt token authentication for users. We are going to use an API gateway to authenticate the user in the request before performing the desired curd-service operation. In the first part, I show how should we configure the express gateway to perform the jwt authentication and pass the claims to the service endpoints. If you only want the express-gateway jwt part, go to Adding the authenticated data to the request at the end of the article, there is a complete config.via the TL;DR App

no story

Written by vahid | potential programmer
Published by HackerNoon on 2020/01/30