0

We have created an extranet user in Sitecore CMS to authenticate users in the CD website for the POST method.

Below is the code written for the same.

AuthenticationManager.Login(domain + @"\\" + username, password, true, false);

Even we tried to use below:

System.Web.Security.Membership.ValidateUser(domain + "\\" + username, , password)

User is getting Authenticated in Standalone environment (DEV and Local) but on the scaled environment, with 2 CD servers, this method is always returning false even after passing admin user.

What I am missing here?

3
  • pl check if sticky session is enabled on Load balancer
    – Abhay Dhar
    Jul 27, 2020 at 11:35
  • Thanks Abhay for the response. Sticky session is enabled. Jul 27, 2020 at 11:38
  • can u pl try once in incognito mode or use a new browser
    – Abhay Dhar
    Jul 27, 2020 at 11:59

1 Answer 1

0

In the CD Web.config, find the "security:define" app setting and change the value of the key from "None" to "Sitecore". It will fix the error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.