Saturday, 2 September 2017

How to Use Login and Logout in Sitecore Experience Accelerator SXA


Open the Sitecore in experience Editor Mode and add login in the Main section while log out rendering in Header section as shown below.





Add the Associated items(Login and Logout)  under given item path as shown below.


/sitecore/content/PradeepNewtenant/myllandingpage/Data/Security




These data source items are useful in order to customise the label, Error Message and Redirection Url post successful login as shown below.

MyLogin                                                                                                                          



MyLogout                                                                                                                




Alright look like all set; let's see how its works in preview mode.  Voila, it works perfectly fine as shown below.

                                 

Isn't it too easy?                                                                                                                                  

Yes, It is very straight forward  However I am pretty much sure you must be having the similar question How to get this working with custom login provider or with federated authentications, etc.

Alright time to do deep dive to find the clue the crux is here.                                                                  


My deep love with latest crush Sitecore SXA continues  :)                                                                   

Happy Sitecore Experience Acceleration.                                                                                           

No comments:

Post a Comment

Featured post

Getting Started With SOLR

Getting Started with Solr ·           Features o    Hit highlighting o    Auto correction o    Faceted Search o    Multi lan...