Hi,
I have an database upgraded from BC15 to BC20.6 onprem using AAD for authentication. At times users are not able to log in and it appears the browser is processing something on the log in screen. Users can only log in after clearing the cookies for the BC website. In the event log I am seeing the following error:
Answers
I have seen a lot of these because Azure security token lifetime is not set.
There was an error regarding a token expiration before this... I set the ExtendedSecurityTokenLifetime setting on the server instance to 8hours and it went away.
Now I have the above error. The only thing I do see a warning though before this issue starts. How did you solve this issue?
https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/configure-server-instance
"Disable token signing certificate validation when configuring Azure Active Directory authentication with single sign-on."
This is disabled -
And the guys responsible for setting up the azure ad have confirmed they are using a default policy with a token lifetime variable between 60-90mins
I. A user authenticates on the server:
2. The system tries to get AAD authentication:
3. I get a configuration warning:
Steps 1,2&3 are repeated multiple times before there is a string of errors:
https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/authenticating-users-with-azure-ad-overview
Enable UseLegacyAcsAuthentication