Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implementing authorization in the gateway #1044

Open
SuheylZ opened this issue Aug 3, 2022 · 0 comments
Open

implementing authorization in the gateway #1044

SuheylZ opened this issue Aug 3, 2022 · 0 comments

Comments

@SuheylZ
Copy link

SuheylZ commented Aug 3, 2022

I'm using express-gateway for a cloud based project. I have a requirement where I have to implement authorization as given below:

  1. validate the JWT token to make sure that the request is authenticated
  2. extract the claims from the token
  3. based on requested endpoint and the extracted claims, perform authorization
  4. if the request is authorized, put the extracted claims into header and forward the request to downstream
  5. if the request is not authorized, send 403 Forbidden

this is a very key functionality that is needed in the gateway.
Is it possible with express-gateway? Is there any documentation or any guidance available on how can this be achieved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant