Skip to main content

Posts

Showing posts with the label Sitecore

Sitecore Content Hub: Method not found: 'Void Microsoft.Extensions.Caching.Memory..." Error

Sitecore Content Hub: Method not found: 'Void Microsoft.Extensions.Caching.Memory..." Error While attempting to install Sitecore Connect for Content Hub on-premises, following the instructions outlined in the document located at https://doc.sitecore.com/xp/en/developers/connect-for-ch/51/connect-for-content-hub/install-sitecore-connect-for-content-hub-on-prem.html, on Sitecore 10.3.1, I encountered the following error: In order to address this problem, I investigated the troubleshooting steps for Sitecore Connect for Content Hub. Regrettably, the specific issue was not identified during this process.  Consequently, I raised a Sitecore ticket detailing the problem and provided relevant logs and memory dumps for review.  Upon examination by the Sitecore team, it was discovered that there were two instances of "Microsoft.Extensions.Caching.Memory.dll" within the /bin directory. Both files shared the version number 6.0.0.1, but it was apparent that the instance located i

Sitecore Custom API Issue with Federation Authentication

Sitecore Custom API Issue with Federation Authentication In earlier segments, detailed in Part 1 and Part 2 of the blogs on Keycloak Integration with Sitecore, I introduced Keycloak functionality for CM login. Concurrently, I addressed a necessity to develop custom APIs for retrieving Sitecore users and roles. Following the development of custom APIs, during authentication failures, the API erroneously returned a status code of 200 instead of 401. The problem arose because API requests were being routed through the "owin.identityProviders" pipeline, which was not intended for API usage. Solution: When OWIN identifies a 401 response and the AuthenticationMode is set to "Active," it fails to capture the URL hash included in the request. Another choice is to activate the "Passive" AuthenticationMode, wherein OWIN refrains from actively intercepting 401 responses. In passive mode, your application needs to explicitly issue a Challenge to trigger the OWIN aut

Sitecore Personalize Certification - Tips and Tricks

 Sitecore Personalize Certification - Tips and Tricks Recently I completed Sitecore Personalize certification. In this blog, I will share my personal experience and the steps I took to successfully complete the Sitecore Personalize certification. Before embarking on the certification path, I explored different resources to strategize my preparation efficiently. Personalize Certificate Competency  Real-time Behavioral Data Ingestion - 11% Experiences - 43% Experiments - 23% Decisioning - 23% Official Documentation https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-sitecore-personalize.html  https://doc.sitecore.com/personalize/en/developers/api/developing-with-sitecore-personalize.html https://learning.sitecore.com/partners/learn/course/389/Sitecore%2520CDP%2520%2526%2520Personalize%2520Technical%2520Deep%2520Dive Some Key Points Web tagging integration process. Web/Interactive/Triggered Experience/Experiments Base Rate/Min detectable difference/ Confiden

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 server, but then an error occurred duri

Sitecore Content Sync with Sitecore Content Serialization in Azure DevOps

Sitecore Content Sync with Sitecore Content Serialization in Azure DevOps I have been working on Sitecore 10.2 with  Sitecore Content Serialization and I wanted to deploy Sitecore items on VM using Azure DevOps. When I started working on deployment, I rarely find blogs related to this so I thought to write a blog on this topic: Prerequisite: Configure a non-interactive client login Log in to a Sitecore instance with Sitecore Command Line Interface Step 1: Add a task in the Azure DevOps pipeline In the pipeline, add a PowerShell task. This PowerShell task will generate the Sitecore content package. In the PowerShell task, update the below settings: Task Version: 2.* Display Name :  PowerShell Script - Content Package Creation Type : Inline Script: Step 2:  Add a task in the Azure DevOps release pipeline Add a new PowerShell task In the PowerShell task, update the below settings: Task Version: 1.* Display Name :  PowerShell Script Type : Inline Script Arguments:  -workingDirectory "

Sitecore Single Sign-On using Custom Identity Provider

Sitecore Single Sign-On using Custom Identity Provider In the previous blog, we discussed Azure AD Integration with Sitecore  for content management. Now in this blog, we are going to discuss how we can allow the end users to log in through SSO. Single Sign On allows users to enter credentials only one time instead of entering the credentials on each application. Sitecore identity server that comes with Sitecore 9.1 allows you to log in through an external identity provider like Azure Active Directory, Facebook, Apple, or Google. It is built on Federation Authentication. Sitecore Identity. Below are the steps: Step 1: Configure OpenID Connect Create a pipeline processor to configure OpenID connect to talk to custom identity providers. Step 2: Patch File Create a patch file that will register a custom Sitecore identity. Step 3:  Login Button Functionality Now on clicking on the login button, you need to redirect to SSO so for this controller add below code: SXA: In the SXA website you

Azure AD Integration with Sitecore 10.2

 Azure AD Integration with Sitecore 10.2 Sitecore identity server that comes with Sitecore 9.1 allows you to log in through an external identity provider like Azure Active Directory, Facebook, Apple, or Google. It is built on Federation Authentication. What is Federation Authentication? Federation authentication is a technology to allows users to access multiples application, tools, and domains using one credential. Using one set of credential user can access multiple applications, and resources after authentication.  Federation authentication consists of two systems, the Identity provider and the Service provider. Identity providers that maintain/create/manage identity information like name, email address, device, and location. Some examples of identity providers are Azure AD, Google, Facebook, and Apple. Service providers basically refer to a website, software, or app that the user is trying to access and SP basically relies on the identity provider to authenticate the user and provi

Sitecore Error 'The shard map manager has to be configured.'

Sitecore Error 'The shard map manager has to be configured.' I installed Sitecore 10.2 XP and after that, I found that on the server CPU utilization was 100% and  then I checked the logs and I found the below error: Error : Sitecore.Framework.Conditions.PostconditionException: Postcondition 'The shard map manager has to be configured.' failed.    at Sitecore.Framework.Conditions.EnsuresValidator`1.ThrowExceptionCore(String condition, String additionalMessage, ConstraintViolationType type)    at Sitecore.Framework.Conditions.Throw.ValueShouldBeTrue[T](ConditionValidator`1 validator, String conditionDescription)    at Sitecore.Xdb.Collection.Data.SqlServer.Configuration.ElasticScaleConnectionManager.InitializeShardMapManager()    at Sitecore.Xdb.Collection.Data.SqlServer.Configuration.ElasticScaleConnectionManager.get_ShardMapManager()    at Sitecore.Xdb.Collection.Data.SqlServer.Configuration.ElasticScaleConnectionManager.GetRangeShardMap(String rangeShardMapName)    at

Sitecore 10.2 XP Scaled Installation Errors

Sitecore 10.2 XP Scaled Installation Errors While I was installing Sitecore 10.2 XP scaled, I faced a few errors which I listed down with the solution. Below are the error and solution: Error 1:  [------------------------------------------ IdentityServer_InstallWDP : WebDeploy ---------------------------------] Install-SitecoreConfiguration : Cannot validate argument on parameter 'Path'. The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The term 'C:\Program Files\iis\Microsoft Web Deploy V3\msdeploy.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. Solution  Install web deploy tool or check correct version of web deploy Error 2:  Install-SitecoreConfiguration : Could not complete request for https://localhost:8993/solr - The underlying connectio