I have application with backend and frontend. We are using JWT token for the authentication and Authorization(A2). Now we are planning to use express-gateway as an API gateway (AG) so that backend can be unload from routing and other protection heavy load and shift that burden to AG. Now since we are using AG shall we remove the A2 logic from backend and whatever request comes to backend (every request will be routed from consumer to backend via AG) we treat it as authenticated user and process the request, no need to verify again. If yes then we will still need JWT token to get the payload to extract the information like email id, role etc. For that should we pass the token from AG to backend. Also backed might have different kind of things on payload than EG. How to tackle that.
API gateway and app backend authentication
428 Views Asked by Vidalia At
1
There are 1 best solutions below
Related Questions in API
- Google Sheets API - Append Request not working
- Is there really no product for docs that has these?
- How to show suggested content in response using Azure Cognitive Search?
- error message when closing current position in binance futures, using ccxt library
- How to filter API data in React Native
- I have fetched an API with JS, but the output looks really bad and I don't know how to fix it
- Session is not storing in react and Asp Dot Core Web API
- Apex charts not rendering series value, showing cannot map values of NULL
- Configure IIS to accept API calls only from API Manager, Deny from direct calls
- Problems with API return using the Axios library in NextJS
- How to query by Iteration in pyral?
- Is there a way to have a user enter a url query and have a single function filter a database?
- Cant get value in Vue from data
- Read stories/posts using instagram API
- Need To Make Minor Change To REST API Response
Related Questions in API-GATEWAY
- Minimizing IdentityServer4 Round Trips in Microservice Architecture with Ocelot
- Using Django as API gateway & authorizations service in Microservice
- Using AWS API HTTP Gateway with HTTP Backend without 301 redirection
- Websocket duplicate on headers
- LocalStack API Gateway Not Triggering Lambda Function from HTML Form Submission
- ApiGateway is not routing the api call
- Handling Microservice Failures in a Consul-Managed Architecture
- How to disable showing default Axis2 services (https://localhost:8243/services/Version?wsdl) in WSO2 API manager 3.2.0?
- Caching : functools vs API Gateway
- disable soap in wso2 api manager gateway https://IPaddr:9443/services
- add custom header at aws lambda authorizer
- Ocelot .NET API gateway: Failed to load API definition
- I want Netty webserver instead of tomcat in my spring-boot project with webflux
- Spring cloud gateway not able to find the service recource
- How to encode parameters for AWS API Gateway (HTTP API)?
Related Questions in EXPRESS-GATEWAY
- How to fix HTTPS on express-gateway
- Error: read ECONNRESET while using rabbitmq
- Express gateway always return Bad Gateway when I run with docker-compose or docker
- Enable authorization in express-gateway
- How do I use Cognito with Express-gateway for token validation
- using Express Gateway as load balancer for docker containers
- Express gateway is not able to access the API and bind with nginx proxy,server response: cannot get
- Express Gateway - Authorization
- Express Gateway OAutn2 client_credentials flow sends incorrect value in expires_in
- Problem in integrating web socket microservice with api gateway using express-gateway
- Divide the gateway configuration yaml file into multiple files - Express Gateway
- How to setup basic-auth in express-gateway?
- express gateway doesn't pass multipart/formdata
- Express gateway return redirect 307 instead of forward requests
- Express Gateway detect authenticated user by cookie
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
To pass authentication information on to a server, you need to use the request-transformer policy to add the information to the request headers going to the server, e.g. the following fragment adds a header named eg-consumers-firstname:
The JS variables you can use in jscode sections is not particularly well documented, but you have access to everything in models/users.js.
In general, you can often adjust the gateway.config.yml such that scopes restrict which apiEndpoints (paths) are available to a given user; this is a better way to prevent unauthorized access then doing the processing on the downstream server side, which should do an independent check in case the API gateway has been compromised.