I have installed Sitecore 10.2 XM
in my local machine
. It's installed 3 sites (CM, CD and IdentityServer).
When I access the IdentityServer
URL https://test.identityserver.localhost/ it works fine. I am able to login and logout without any issues.
When I access the CM
URL https://test.cm.localhost/sitecore/login I am expecting this should redirect me to IdentityServer
site and after successful login redirect me to CM
site. But this is not happening and when I access the CM
URL https://test.cm.localhost/sitecore/login it is going to https://test.cm.localhost/sitecore/login?fbc=1 I am able to login successful though. But I expect it should go to IdentityServer
site when I login/logout.
In the file, C:\inetpub\wwwroot\IDS\test.cm.localhost\App_Config\Sitecore\Owin.Authentication.IdentityServer\Sitecore.Owin.Authentication.IdentityServer.config
, I have the following setting:
<sc.variable name="identityServerAuthority" value="https://test.identityserver.localhost" />
Below is my IdentityServer
config file C:\inetpub\wwwroot\IDS\test.identityserver.localhost\Config\production\Sitecore.IdentityServer.Host.xml
<?xml version="1.0" encoding="utf-8" ?>
<Settings>
<Sitecore>
<IdentityServer>
<CertificateThumbprint>8C0635270629989F235AD625692FC9220F0C1400</CertificateThumbprint>
<CertificateStoreLocation>LocalMachine</CertificateStoreLocation>
<CertificateStoreName>My</CertificateStoreName>
<SitecoreMembershipOptions>
<ConnectionString>Data Source=XXXXXX;Initial Catalog=Test_Core;User ID=securityuser;Password=ZPOgVcB1jMWadVFP0R6K</ConnectionString>
</SitecoreMembershipOptions>
<AccountOptions>
<PasswordRecoveryUrl>https://test.cm.localhost/sitecore/login?rc=1</PasswordRecoveryUrl>
</AccountOptions>
<Clients>
<DefaultClient>
<AllowedCorsOrigins>
<AllowedCorsOriginsGroup1>https://test.cm.localhost</AllowedCorsOriginsGroup1>
</AllowedCorsOrigins>
</DefaultClient>
<PasswordClient>
<ClientSecrets>
<ClientSecret1>IdentityServerClientSecret</ClientSecret1>
</ClientSecrets>
</PasswordClient>
</Clients>
</IdentityServer>
I have the below entry in my CM site connectionstrings.config
file as well:
<add name="sitecoreidentity.secret" connectionString="IdentityServerClientSecret" />
Sitecore.Owin.Authentication.IdentityServer.Disabler.config
on your CM, do you?