My Journey of GSoC 2021: Week 2 and Week 3
Hello everyone, I hope you all are safe and healthy. This blog gives insights into my week2 and week3 as part of Google Summer of Code 2021 with SCoRe Lab (Sustainable Computing Research Lab).
Work Till Week 1
Till this point in time, I have completed my milestone for week1 that was proving a better structure to the OpenMF’s backend and revamping the database architecture.
Milestones for Week 2 and Progression
The milestone decided for Week2 was to providing authentication of the user. This task boiled down to two sub-task that were providing authentication to backend and frontend.
For authentication and authorization, I choose JSON Web Tokens. So I started working to implement JSON Web Tokens. After implementing JSON Web Token to the backend, I created some decorators to authorize users based on the user’s role.
Then came the time to design register and login pages for creating an instance of a user model and storing them in the database.
Milestones for Week 3 and Progression
The milestone for Week3 was to creating RESTFUL APIs for a user that has Admin privileges.
How OpenMF works like there are three roles that a user can have. These roles are Admin, Extractor, and Management, each user has some privileges according to their role. So, the main task for week3 was creating all the APIs that would be needed for implementing functionality related to an admin user.
Pull Requests Created for Week2 and Week3
- #180: Implementing JWT and creating decorators for each role
- #184: AUTH Process in Frontend
- #190: Creating REST APIs for admin
Have a look at my previous Blogs
Here are the collection of blogs that I have written during Google Summer of Code 2021
Thanks 🙌