Microsoft Social Login

I’m using social_django library for google login, now i want to add microsoft login to my project.

https://python-social-auth.readthedocs.io/en/latest/backends/index.html
In this there are 2 social backend Microsoft tenant support and other is Microsoft Graph.

I have added

Settings.py
SOCIAL_AUTH_MICROSOFT_GRAPH_KEY = ‘…’
SOCIAL_AUTH_MICROSOFT_GRAPH_SECRET = ‘…’

SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (

‘social_core.backends.microsoft.MicrosoftOAuth2’,

)

Templates
Login

after migrations when i hit login link it gives me error

Backend not found

|Request Method:|GET|
|Request URL:|http://localhost:8000/social-auth/login/microsoft-oauth2/|
|Raised by:|social_django.views.auth|

my urls.py looks like
urlpatterns = [

path('admin/', admin.site.urls),
path("", include("main.urls")),
path('social-auth/', include('social_django.urls', namespace='social')),
path('google-upload/', views.UploadFunc, name="google-upload"),
path('loginnext/<str:nexturl>/', views.LoginNext.as_view(), name="LoginNext"),
re_path(r'^media/(?P<path>.*)$', serve, {'document_root' : settings.MEDIA_ROOT})

] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

Hi! did you find out what’s happening with this? i have the same issue… any suggestion? thanks!