Single Sign-On (SSO) access is currently available as an extension only for users with a Premium Expert level or higher subscription.
If you wish to subscribe to a Premium plan, you can do so by going to the PREMIUM PLANS tab of your ADMIN upgrade to a higher plan.
NOTE to WordPress plugin users: no need to follow the tutorial that will follow, SSO is already integrated. You just need to activate it in the "Plugin Settings" tab. After which, the connection to comment will be done via your WordPress blog.
Introduction
Single Sign-on (SSO) allows users to connect to a site and fully use GraphComment without having to authenticate again with Graphcomment. The SSO will create a user profile at the site on GraphComment if it does not already exist or it will merge the data if it exists by giving priority to the data on your website.
Procedure
- go to your Admin, Installation tab > SSO script
- Copy the Back-end script and implement your solution in your environment following the instructions.
- Copy the Front-end script and use the ssoData string generated from your back-end code to send us the user information on our Javascript tag, this information is encoded in hmac sha1
- Set up the script as needed
"Subscribe to token" function
This is a function that will receive a "C" callback securely passing our authentication token to the iframe. "C" must be called every time the authentication is changed.
@param {function} callback (callback takes a string as parameter)
subscribeToToken: function() {
console.warn("subscribeToToken must be implemented according to your authentication design")
}
"Sign up" function
This is a function that will trigger the registration window to open.
You can redirect to your login page: window.location.href = '/signup'; or you can also open a modal for the user to sign up.
signup: function() {
console.warn("signup must be implemented according to your authentication design")
}
"Login" function
This is a function that will trigger the login window to open.
You can redirect to your login page: window.location.href = '/Login'; or you can also open a modal for the user to log in.
login: function() {
console.warn("login must be implemented according to your authentication design")
}
"Logout" function
This is a function that will trigger the logout window to open.
You can redirect to your login page: window.location.href = '/Logout'; or you can also open a modal for the user to logout.
logout: function() {
console.warn("logout must be implemented according to your authentication design")
}