Create the SSO Code Structure
This article is about implementing SSO for Emplifi Ratings & Reviews widgets. For implementing SSO for the Emplifi platform, see Single Sign-on (SSO).
To add the necessary field and functions to your existing Emplifi Ratings & Reviews configuration code, in your product detail page, update the turnToConfig JavaScript object to include the sso field:
        CODE
    
    var turnToConfig = {
    ... // add the sso field after your existing turnToConfig contents
    sso: {
        userDataFn: function(contextObj) {
            // we'll add code inside this function in a later step
        },
        loggedInDataFn: function(contextObj) {
            // we'll add code inside this function in a later step
        },
        logout: function() {
            // we'll add code inside this function in a later step
        }
    }
}