Gateway level authorization. #148
Replies: 5 comments 3 replies
-
@agarwal-nitesh by gateway level authorization, I suppose you mean server side authorization (something like node-js middleware) I would recommend using A. Difference between
B. Yes, access_token is authorization code validated against the roles provided. C. How to get access token
D. Once you have the access token, you can use |
Beta Was this translation helpful? Give feedback.
-
True For validating with Here is how expiry is manged
|
Beta Was this translation helpful? Give feedback.
-
Planning to add new Query which can help in validating all 3 token types, without rotating them so that you can have it synced between frontend and middleware |
Beta Was this translation helpful? Give feedback.
-
@agarwal-nitesh there is discord server: |
Beta Was this translation helpful? Give feedback.
-
I agree for this, it can be done in frontend or API gateway. |
Beta Was this translation helpful? Give feedback.
-
For the use case of gateway level authorization, do you recommend a particular graphql query? I was checking
getToken
in authorizer-js (authorizer-js-code). Would you recommend using it for this use case?A few more queries: Once a user logs in (authorizer-js-code), we get
access_token
,id_token
anduser
details in response.A. What is
id_token
?B. Is
access_token
the authorization code?C. Are we supposed to use this authorization code to then get the access token?
D. Once we have the access token, what query should we use to protect resources in different services?
Beta Was this translation helpful? Give feedback.
All reactions