davidjrh/dnn.azureadprovider

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
ErroreAAD
If I discard the save user/pw and try new value (same email but different PW), I can login

  1. Is it normally?
  2. Is it depend on AAD config?
  3. 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.

In fact, I was just able to recreate your exact issue by logging into our DNN tenant with my personal (Non-AAD) credentials:

image

@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?

This sounds like an advanced setting to set through a dropdown and the corresponding help shown below.

image

Fixed on PR #69

Thanks @alendv for the contribution.