-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generalization for other colleges #11
Comments
Things that are currently IIT KGP specific in the project, and hence will need to change for generalization:
|
Thank you for outlining the IIT KGP-specific aspects of the project. After reviewing the codebase and the requirements, here’s my plan to address these changes:
However, to test and see the functionalities locally, it seems that requests must originate from within the IIT Kharagpur network, and I would need an IIT KGP email. Could you guide me on how to proceed with this in a testing environment?
Please let me know if the proposed solutions align with your expectations and how I can proceed further, particularly with testing the HEIMDALL integration. We can do one task at a time and implement generalization for other Institutes. |
I am looking at this in 2 ways:
Talking about Heimdall:
As you can see, we only need to call this auth system once. It authenticates, sets the cookie and is done. Then it is called once again for registering the user to check for validity. That is it, you just need 2 endpoints to any working/new authentication system. For locations, we might save a list of possible locations for each college, in the same Institution schema. |
Thank you for the detailed explanation. I understand the two approaches you are considering. Please let me know which direction you’d prefer, or if you have any additional inputs before I proceed. |
Let us modulalize the authentication completely seperately in order to achieve the first method, then we can build on it and generalize for other colleges. |
Draft Solution Please provide feedback so I can start working towards it. |
You may continue. |
Key Steps for the College to Use Your Repository:
I have done changes in code and replace hardcoded URLs but I am confused about purpose of instituteSchema, because college will manually insert their institution's details including locations and we will display locations using an utilis function which request to database and get locations. So basically for now I need instituteSchema only for locations which is not making a lot of sense. How should I processed ? |
I see you have mixed up the 2 approaches we discussed earlier. Please rethink. For the second approach that we plan to develop finally, there is no need for anyone else to clone the repo, make manual changes to the code and host it themselves. Our project will handle the various colleges on its own. The pipeline I have in mind is that if a student finds that his/her college is not yet listed, they may request us to add their college, providing all the details and necessary auth endpoints (or the format of institute email, which we may then use to send OTP ourselves and verify the domain - but let us focus on just considering that they have a Heimdall-like function for now, which later we might develop completely independently) through some form (even google form would do). This process can eventually then be made more automated where they will upload the data and their college will be activated after verification from one of our project admins (in this case and currently, me). We might need to come up with a small admin panel also later to add/edit/monitor the various colleges and do other stuff. I hope your doubts about InstitutionSchema are clearer. As far as I can see now, we might need to store the following data for each college in that: name, code, locations, emailFormat, getAuthLink, verifyAuthLink. |
As I said before, let us start by modularizing the authentication completely separately by making an InstitutionSchema with just one row (for KGP), then we can build on it and generalize it for other colleges. |
Yeah, now we have some real stuff to work on! It is a great beginning, although not complete and foolproof! Let us connect on Slack to discuss this in more detail: https://slack.metakgp.org/. Please create a thread in the Projects channel and tag me there. |
One can come up with ways to generalize the use of this platform for other colleges/organizations as well.
The text was updated successfully, but these errors were encountered: