Skip to main content

Posts

Part 1: Keycloak Integration with Sitecore

Part 1: Keycloak Integration with Sitecore Application security is more important on day to day basis, access management(IAM) tools ensure that only authorized individuals can access the necessary resources, while unauthorized users are denied entry. This helps protect sensitive information, prevent data breaches, and maintain regulatory compliance. What is a Keycloak? Keycloak is an identity and access management(IAM) tool. Keycloak is an open-source tool having a license of Apache license 2.0. Keycloak empowers you to swiftly secure services while minimizing time requirements and seamlessly incorporating authentication into applications. Keycloak Features SSO : Keycloak fully enables both Single Sign-On and Single Sign-Out functionalities. Admin Console :  Keycloak provides a user-friendly web-based GUI that simplifies the configuration process, allowing you to effortlessly customize your instance to align with your specific requirements. Multiple Protocols Support : Cu...

A connection was successfully established with the server, but then an error occurred during the login process.

 While I was installing Sitecore 10.1.2 XP01, I was getting this error " A connection was successfully established with the server, but then an error occurred during the login process". Install-SitecoreConfiguration : A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.) At C:\Swati\Sitecore\Sitecore 10.1.2 rev. 006578 (WDP XP1 packages)\XP1-SingleDeveloper.ps1:152 char:1 + Install-SitecoreConfiguration @XP1Parameters *>&1 | Tee-Object XP1-Si ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException     + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration [TIME] 00:02:21 Invoke-Sqlcmd : A connection was successfully established with the ...

Sitecore Messaging Framework

  Sitecore Messaging Framework Recently I have implemented Sitecore Message Framework. Hopefully, it will be helpful for you. Scenario: I had a scenario where I was using a scaled environment and I wanted to save some data on the master DB from content delivery. As you know content delivery can access Core and Web Db and it cannot access master DB so to achieve this functionality I have used Sitecore Messaging Framework. What is a Sitecore Messaging Framework? Sitecore Messaging was introduced in Sitecore 9.0.1 version (Only SQL Transport). It supports message-based communication in Sitecore.  It is part of the XP, not part of the XM configuration. It wraps up the Rebus library. Please install the following libraries Sitecore.Framework.Messaging.Abstractions Sitecore.Framework.Messaging.Configuration Below are the steps: You need to create a configuration file for the bus which you need to copy to CM and CD. Then you need to create an empty class. Now you need to create a...

Sitecore 10.2 error: Failed to start service 'Sitecore Marketing Automation Engine Service"

Sitecore 10.2 error: Failed to start service 'Sitecore Marketing Automation Engine Service" I was facing an issue restarting "Sitecore Marketing Automation Engine Service" and getting the below error: Application: Sitecore.MAEngine.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.InvalidOperationException at Sitecore.XConnect.Client.XConnectClientConfiguration.CheckInitialized() at Sitecore.XConnect.Client.XConnectClientConfiguration.get_CurrentModel() at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(Microsoft.Extensions.DependencyInjection.ServiceLookup.FactoryCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[[Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext, Microsoft.Ext...

Sitecore Technology MVP Award 2023

 The Sitecore MVP Award celebrates the most active Community members worldwide who provide valuable online and offline expertise that enriches the community experience and makes a difference. I am pleased to announce that I have been naming a " Most Valuable Professional (MVP) " by Sitecore. After working for more than 7+ years in Sitecore it was fascinating to achieve this milestone which was my dream.  I am really thankful to everyone who has supported me in this journey and guided me. More details about the Sitecore MVP Program you can find  here

"An error with Nouce cookie occured" in Sitecore Single Sign-On

"An error with Nouce cookie occured" in Sitecore Single Sign-On I have implemented  Sitecore Single Sign-On using Custom Identity Provider  in my project. This is working fine on-premise but when I deployed it on AWS then this SSO functionality was not working on Chrome and I was getting the below error: Error: Solution: After some research, I found that I need to pass `CookieManager` property in `oidcOptions` object as mentioned below code: public ProjectIdentityProvider( FederatedAuthenticationConfiguration federatedAuthenticationConfiguration, ICookieManager cookieManager, BaseSettings settings) : base(federatedAuthenticationConfiguration, cookieManager, settings) { this.cookieManager = cookieManager ?? throw new ArgumentNullException(nameof(cookieManager)); } protected override void ProcessCore(IdentityProvidersArgs args) { var authenticationType = this.GetAuthenticationType(); var identity...

Part 5: Sitecore Dynamic CRM Connector: Sync Custom Facets(Checkbox Field)

Part 5: Sitecore Dynamic CRM Connector: Sync Custom Facets(Checkbox Field)  Part 1:  Install Sitecore Connect™ for Microsoft Dynamics 365 for Sales 7.0.0 for Sitecore 10.2 XP Part 2:  Sitecore Connect™ for Microsoft Dynamics 365 for Sales 7.0.0: Configure Endpoints Part 3:   Sitecore Dynamic CRM Connector: Use Delta Settings while Syncing Contact from Sitecore to CRM Part 4:  Sitecore Dynamic CRM Connector: Sync Marketing List from CRM to Sitecore   In this blog, we are going to sync custom facets from Sitecore to CRM. The custom facets document is available here  so I am assuming that you have already created custom facets.  Go to this location "/sitecore/system/Settings/Data Exchange/Providers/xConnect/Collection Models" and create a new "Collection Model Folder". Inside this folder create a "Compiled Collection Model" and type the namespace and assembly name of your custom facet model in the "Collection Model Type" field. Go to this locati...