Authentication#22
Conversation
- Provide response server pattern - Implement Authentication using jwt and refresh token - Service Layer - Create 2 Services one for Authentication and the other for user operations - APIs - Auth Controller: and most of its endpoint not authorized as it's used for authentications process and handleing tokens lifes - User Congroller: authorized controller for user usuall operations - Completed APIs - register - login - Refresh Token - logout - get current user APIs TODO: - getuserbyid - EditUser - reset password - confirm email needed Refatoring: 1. Map DTOs in app layer not service layer 2. make new token in referesh process to take the same expire date as previous to prevent inite available token 3. enhancement the implementatin for logout api
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
| return Ok(result); | ||
| } | ||
|
|
||
| [HttpGet] |
There was a problem hiding this comment.
Change HttpGet to HttpPost for more security level
|
Move Token_Exp & Refresh_Exp to appsettings.json |
#16
This Pr Contain
Prograss
Done:
TODO:
needed Refatoring: