News for hackers. Stuff that matters.

nik2303

Congrats on the launch!

I have a question - what if I want to integrate Stack with React and NestJs app? I couldn't find any docs for a backend authentication.

Re:Ask HN: Which Authentication provider to use? on Tuesday April 02, 2024 @05:54PM (#39911275)
I played around with Zitadel. It looked a bit too confusing with too many UI options in it. My tech stack is this: React on frontend, NestJs on backend, React Native for mobile app (this is currently not in scope, so my playground at the moment is web app and backend).

Then I went to structure the Zitadel like this: 1 Organization has -> 1 Project has -> 2 Application.

Applications: - 1 User Agent (this I use on React side, I guess?) - 1 Web app (this I use in NestJs, I guess?)

And both applications have PKCE flow as Authentication Method. Then I check the API for application type and it has only Private JWT authentication method.

Can I have then 1 Web App/User Agent and 1 API application? or 1 Web App and 1 User Agent?

And if I use API application with private key JWT, what should be the auth method for other application?

Ask HN: Which Authentication provider to use?

So I am building an application that I would sell as SaaS in future. A web app for one set of users. A mobile app for another set of users. For web-app I would like to have email/password, phone(totp based) login. For mobile app, just phone (totp based) login.I've been looking at several authentication providers: - Supabase Auth - Zitadel - Supertokens - OrySelf-hosted vs Cloud based: I...

( Read More... | 3 comments | 5 points | on HN )