Azure-Samples / active-directory-b2c-advanced-policies

Sample for use with Azure AD B2C with Custom Policies.
http://aka.ms/aadb2ccustom
MIT License
218 stars 143 forks source link

"Object reference not set to an instance of an object." when login triggered on existing session #9

Open onionhammer opened 7 years ago

onionhammer commented 7 years ago

If the user attempts to invoke the login after they already have an active session cookie in B2C using AAD-UserReadUsingAlternativeSecurityId, an object reference error occurs.

If a pre-requisite is missing, it should display a more helpful error

Still investigating...

pratik28 commented 6 years ago

Hello, Did you find a solution to this problem ? I suppose it could be a problem with Windows - https://support.microsoft.com/en-ca/help/2379592/-object-reference-not-set-to-an-instance-of-an-object-error-message-wh

Thanks

onionhammer commented 6 years ago

@pratik28 Yes, MS support had me add in the following line to one of my TechnicalProfiles.

          <UseTechnicalProfileForSessionManagement ReferenceId="SM-Noop" />

I'm not clear whether this is truly a resolution or a workaround for my purposes, so I'm leaving this issue open and I'll let someone else decide