Skip to content

Add a configuration option to allow authenticating via Microsoft Authenticator app #113

@Zohair-coder

Description

@Zohair-coder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions