chingu-x / chingu-dashboard-be

Chingu Dashboard Moonshot (backend) | Frontend repo: https://github.com/chingu-x/chingu-dashboard | website: https://chingu-dashboard.vercel.app/
GNU Affero General Public License v3.0
8 stars 5 forks source link

Implement authentication strategy #22

Open jenny-alexander opened 1 year ago

jenny-alexander commented 1 year ago

Implement Passport as authentication strategy for Chingu Dashboard. According to Nest.js docs, integrating Passport with Nest application should be straight-forward.

@cherylli can investigate further and advise us of best approach.

jenny-alexander commented 1 year ago

CGD-22 Implement Authentication stategy

cherylli commented 1 year ago

I think most of us prefer jwt, so we can use jwt. I'm thinking to implement basic username/password login so frontend can start using that and we can stop using placeholder userId. Then, add other strategies like discord/github etc, whatever was planned in the design.

username/password would be easier for the frontend to use, as they would not have to login using their own account which we'll need to create fake data for them

https://docs.nestjs.com/recipes/passport

cherylli commented 1 year ago

keeping this open as there are still a few tasks to do

cherylli commented 8 months ago

basic authorization done, Oauth will be in phase 2