Posts

Showing posts from November, 2021

Last logged in Capture B2C Authentication in Portal Custom Code

Image
Portal Last logged in B2C Authentication page The Last Successful Login field on the Contact record has stopped updating.  It may be version related - the portals on 9.3.4 don't work whereas those on 9.3.3. do work. I understand that this feature is deprecated and should be replaced with Azure Application Insights. B2C Authentication: - Azure Active Directory B2C (Azure AD B2C) is a cloud identity management solution for web and mobile apps. The service provides authentication for apps hosted in the cloud and on-premises. Authentication types include  individual accounts, social network accounts, and federated enterprise accounts. If your portal is configured with Azure B2C Authentication for this I have implemented the functionality by adding jQuery code  and calling Power Automate   Flow in the Header web template  to update the Last Login field to (almost) replicate the old behavior.   Step 1: In the Header web template add below script < script >        var B2CSignI