Login into admin does not close the microsoft window and does not reload the page.
See original GitHub issueHi,
I just set up microsoft login. I try to login into django admin. The user was created by the plugin and I already gave him staff and admin permission by using a superuser. But the moment the microsoft login is completed, the window shows:
This window should automatically close. If it does not, it should be save to close after a few seconds.
{"microsoft_auth": {}}
But:
- The window does not close.
- If I close the window manually the login page does nothing. It does not automatically refresh.
If close manually and afterwards refresh manually the user is logged in. But that can’t be the way a user should log in.
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Windows Admin Center common troubleshooting steps
Installer fails with message: The Module 'Microsoft.PowerShell.LocalAccounts' could not be loaded. I get a This site/page can't be reached error ...
Read more >You receive an "Administrators only" error message in ...
After you logged on as an administrator, try to visit the Windows Update Web site or the Microsoft Update Web site again. If...
Read more >Windows Admin Center known issues | Microsoft Learn
Go to Settings > Azure > Unregister, and then register Windows Admin Center with Azure again, making sure you choose to create a...
Read more >You receive one or more error messages when the system ...
Describes a problem where you receive one or more error messages when Windows Update or Microsoft Update is disabled by the system administrator....
Read more >"Windows cannot access the specified device, path, or file ...
Troubleshooting error message: Windows cannot access the specified device, path, or file. You may not have the appropriate permission to access the item....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I did some digging into this. Django 4.0 added a security feature that breaks how this page was working. This change causes these two lines to error since
window.opener
is null.The solution in in the documentation link above. Set
https://docs.djangoproject.com/en/4.1/ref/middleware/#cross-origin-opener-policy https://docs.djangoproject.com/en/4.1/ref/settings/#std-setting-SECURE_CROSS_ORIGIN_OPENER_POLICY