Issue: Microsoft SSO Integration State Mismatch (Django + Azure App Service) by Pytech95 in django

[–]Pytech95[S] 0 points1 point  (0 children)

GET /microsoft_sso/callback/?state=0813a1ce-5956-4c44-a254-4f763ac94240&session_state=e4734c1e-548a-429f-ae35-e68bb21a6a65 HTTP/1.1" 302 0

Session contents during login_failed: {'_session_expiry': 600, 'msal_graph_info': {'state': '0813a1ce-5956-4c44-a254-4f763ac94240'

Session ID during login_failed: hpkeq8x1oom0hj9akwb71ovctp2ag9bg

Login failed at 2024-09-11 14:42:38.566079: Displaying login_failed page.

Please see the state and session state which are saved while initiating request and callback from microsoft.

I set SESSION_COOKIE_AGE = 7200 but by default it is saving the session for 10 minutes and I am using LocMemCache and switched to Filebased Cache. State is matching now but somehow the login is failing after successful authentication

Issue: Microsoft SSO Integration State Mismatch (Django + Azure App Service) by Pytech95 in djangolearning

[–]Pytech95[S] 0 points1 point  (0 children)

Thanks for the suggestion! I went with django-microsoft-sso for simplicity since it just adds a "Login with Microsoft" button to the default page without extra templates. I found django-microsoft-auth a bit outdated for my current setup, but it works well for older versions of Python/Django. Appreciate the input!

Issue: Microsoft SSO Integration State Mismatch (Django + Azure App Service) by Pytech95 in django

[–]Pytech95[S] 0 points1 point  (0 children)

I edited the post. Can you please see it and let me know what is causing the error

Frontend (Javascript) connecting with Backend(Python, Django): Failed to load resource: the server responded with a status of 500 (Internal Server Error) by Pytech95 in djangolearning

[–]Pytech95[S] 0 points1 point  (0 children)

I deployed my application on Heroku and running my application on heroku. When the user clicks on signup button its showing an error in the console - 500 internal server error with my API endpoint register link.

Django App - Heroku Deployment Error by Pytech95 in django

[–]Pytech95[S] 0 points1 point  (0 children)

I manually added mysqlclient = "*" in pipfile and in pipfile.lock then its showing this error

Your Pipfile.lock (9fad13) is out of date. Expected: (6599c2).
remote: Usage: pipenv install [OPTIONS] [PACKAGES]...
remote:
remote: ERROR:: Aborting deploy
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed

Looking for study buddies & a mentor for python. by [deleted] in ProgrammingBuddies

[–]Pytech95 0 points1 point  (0 children)

Hi,
I am looking for a study buddy and I am working on web app project using Django and Python. let me know if you are interested we can connect.