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
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 need to add "loginpage" and "requireLogin" properties in "Other properties" section.
Step 4: Secure Page
There could be a possibility that you want to secure only a few pages so in this case on that page restrict "extranet\Anonymous" user.
Step 5: Logout
On the logout button click you can logout virtual user as mentioned below:
Comments