In my Django web application, I need to enable SSO - single tenant - Internal to the organization.
Based on ref tutorial: link I was able to copy-paste required code snippets in views.py, urls.py.
I also created an oauth_settings.yml file-
app_id: {app id}
app_secret: {app secret}
redirect: "http://localhost:8000/callback"
scopes:
- user.read
authority: "https://login.microsoftonline.com/{tenant}"
Yet every time after I submit the O365 credentials, I am facing the same /callback error :-
I have identified the issue to be in 'auth_flow' variable which holds entire flow dict. data which is reflected earlier, but fails to be saved in the request.session.
What might the issue be here?


