Problem after update AD password
rodsmr opened this issue · 11 comments
Environment
- DNN 9.9.0
- DNN Azure AD Provider 4.0.4
- Windows Server 2012 R2
Problem
I've update Azure Active Directory AAD password few days ago; after this change, I try to login my site and I've got the attached error
If I discard the save user/pw and try new value (same email but different PW), I can login
- Is it normally?
- Is it depend on AAD config?
- How to avoid it?
Thanks for the support, best regards
I need to reopen this issue. Today an user updates its AAD password and it has the same problem
@rodsmr , does the user have a Microsoft LIVE account with the same credentials as their AAD account?
@rodsmr , does the user have a Microsoft LIVE account with the same credentials as their AAD account?
I suppose yes (but I really dont know). Is there a way to debug?
I'm not sure if there is a way to debug but we have had instances (not specific to DNN) where users had both a Personal Microsoft Live Account and an AAD Account with the same credentials. When this happens, I have seen instances where they will be redirected to https://login.live.com/ to login instead of https://login.microsoftonline.com/
If the user is logging into login.live.com instead of login.microsoft.com, you will get the error message you sent. Just one thought.
@swalker1595 thanks. Can I force to use https://login.microsoftonline.com/ instead of https://login.live.com/ ?
I don't think there's any way to prevent this as it's Microsoft's intended behavior to redirect users to login.live.com
I hate linking to external sites but here's some documentation I found:
https://stackoverflow.com/questions/37245600/how-to-prevent-redirect-from-login-microsoftonline-com-to-login-live-com-while-u
https://docs.microsoft.com/en-us/answers/questions/34806/azure-ad-404-error-when-login-with-microsoft-accou.html
https://answers.microsoft.com/en-us/outlook_com/forum/all/loginmicrosoftonlinecom-redirecting-to/34fc19c7-6523-4a0f-b210-7c26b13c8316
@swalker1595 thank you very much, I read your docs!
Hi @swalker1595
From Microsoft OAuth 2.0 doc , I modify the AzureClient.cs code to add new QueryParameter("prompt", "login") at Authorize() method
I think this configuration can be choose by user during configuration. @davidjrh what do you think about my idea?