-
-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Currently, before scraping, the scraper needs to be authenticated via Microsoft. The 2FA process for authenticating via Microsoft accepts different ways of proving your identity (e.g. text message, authenticator app, etc).
To run the scraper, you are required to use an authenticator app other than Microsoft Authenticator. This is because Microsoft Authenticator sends a notification to your phone, which you need to manually approve. Since the scraper runs as a recurring job every 20 minutes, this method of proving identity is not feasible for us when running the job.
Instead, we opt to use a different authenticator app (e.g. Google Authenticator) that does not send notifications to your phone. It only asks you for the 2FA code, which you can find on the Google Authenticator app. This method of authentication is more suitable since we can programmatically obtain this code, without human intervention.
Although this method works for running the job on a recurring schedule, it is not convenient to use for students as a default authentication option. It would instead be easier to configure the authenticator to use Microsoft Authenticator when developing locally, and token based auth when running on the server as a recurring job.
Add a config that allows the user to set this preference and write the code to actually support this feature.