DEV Community

Discussion on: How to Sign-In with Google in Angular and use JWT based ASP.NET Core C# API Authentication (RSA)

Collapse
 
christianzink profile image
Christian Zink

Hello Aakash,

Thank you for your feedback.

I will try to answer your questions. But these are only my personal oppinions so you should do your own researches, too.

  1. I would use a single microservice that handles everything regarding users and authentication. Like login with google, facebook, (optional) user signup and user database, creation of application JWTs. etc

  2. From a security perspective there is no reason to hide the clientID from the user. But handling the flow in the backend would be a security improvement for other reasons. The OAuth flow in the backend is called "Authorization Code Flow" and it will be more secure. But I did not try it myself yet.