NextAuth Js as API Gateway #4610
Unanswered
reachkrishnaraj
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello network, Needing an expertise feedback here.
Goal is to have a flexible, high performant, versatile, widely adopted authentication service for integrating with API gateway.
I can across https://next-auth.js.org/ . Its simple, and powerful, supports wide number of SSO providers including Cognito. But its designed for apps/clients based on Next.js.
However, the v4 has REST endpoints: https://lnkd.in/dtd7jE8W.
I am thinking to host this with required modification backed with an OAuth provider like cognito as side-car for my API gateway to authenticate users for protected resources. I have multiple µservices which uses same user authenticate pool. NextJS Auth covers many OAuth2 providers, hence motivated for this workaround.
Question: Does this approach make sense ? There is also PassportJS, but eventually the approach would be same. Pls feel free to DM or comment on this post, Thanks a bunch.
Beta Was this translation helpful? Give feedback.
All reactions