Windows Server Basic Authentification App

I have a web application on a Windows server that is secured with Basic Authentication with local users.
Now I want to connect it with Auth0 to be able to use 2FA and social login.
However, I cannot change the application itself to use e.g. the auth0 SDK.
Can you tell me how I can still connect the server to auth0?