{"id": 117, "date": "2024-08-12T14:09:59", "date_gmt": "2024-08-12T14:09:59", "guid": {"rendered": "/?post_type=docs&#038;p=117"}, "modified": "2024-08-12T14:09:59", "modified_gmt": "2024-08-12T14:09:59", "password": "", "slug": "how-to-manage-EchoRivos-single-sign-on-sso-feature", "status": "publish", "type": "docs", "link": "/docs/how-to-manage-EchoRivos-single-sign-on-sso-feature/", "title": {"rendered": "How to Manage EchoRivo&#8217;s Single Sign-On (SSO) Feature"}, "content": {"rendered": "\n<p class=\"wp-block-paragraph\">Single Sign-On (SSO) is an identification method that allows users to access multiple applications and websites with just one set of login credentials.</p>\n\n\n\n<p class=\"wp-block-paragraph\">EchoRivo&#8217;s Single Sign-On (SSO) feature streamlines the process of user identification, allowing your customers to upvote, comment, or create a feature request without needing to go through additional email verification steps.<br>By integrating SSO, EchoRivo communicates with your server to determine if a user is already registered, and if so, automatically identifies them.</p>\n\n\n\n<p class=\"wp-block-paragraph\">The tutorial will show how to execute the SSO method with EchoRivo.</p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-steps-to-implement-the-sso-method-with-EchoRivo\">Steps to implement the SSO method with EchoRivo</h3>\n\n\n\n<p class=\"wp-block-paragraph\">Provide a URL for EchoRivo to redirect users to, where they can either log in or sign up. If the user is already logged in, simply redirect them back to the provided redirect URL as can be seen from point 2.</p>\n\n\n\n<p class=\"wp-block-paragraph\">EchoRivo will send a request to your provided URL, appending a&nbsp;<strong>`redirectUrl`</strong>&nbsp;parameter.</p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, if your URL is&nbsp;<strong>`https:\\/\\/example.com\\/sso`</strong>, EchoRivo will call&nbsp;<strong>`https:\\/\\/example.com\\/sso?redirectUrl=https:\\/\\/app.EchoRivo.ai\\/backend\\/api\\/v1\\/sso\\/fallback\\/productSlug\\/`</strong>.</p>\n\n\n\n<p class=\"wp-block-paragraph\">To implement SSO, you&#8217;ll need to:</p>\n\n\n\n<p class=\"wp-block-paragraph\">Create a JSON Web Token (JWT) containing the user&#8217;s&nbsp;<strong>`email`</strong>&nbsp;and&nbsp;<strong>`name`</strong>.<br>Sign the JWT with EchoRivo&#8217;s provided&nbsp;<strong>`SSO Token`</strong>&nbsp;to ensure the request originates from your server.<br>Make an HTTP GET request to the&nbsp;<strong>`redirectUrl`</strong>&nbsp;with the created token attached.</p>\n\n\n\n<p class=\"wp-block-paragraph\">An example of the request can be found below:</p>\n\n\n\n<pre class=\"wp-block-code\"><code>HTTP GET\n\n\nhttps:&#47;&#47;app.EchoRivo.ai/backend/api/v1/sso/fallback/productSlug/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c</code></pre>\n\n\n\n<p class=\"wp-block-paragraph\">EchoRivo will validate the request, and if everything checks out, the user will be granted access to upvote, comment, or create a feature request without any need to login to the EchoRivo system again.</p>\n\n\n\n<p class=\"wp-block-paragraph\">Below you can find a code example for&nbsp;<strong>Node.js</strong>:</p>\n\n\n\n<pre class=\"wp-block-code\"><code>import jwt from 'jsonwebtoken';\n\nconst EchoRivoSSOToken = 'EchoRivoSSOToken'; // From Products -&gt; SSO -&gt; SSO Token\nconst user = {\n  email: 'joe@gmail.com',\n  name: 'Joe Doe',\n};\n\nconst generatedJwtToken = jwt.sign(user, EchoRivoSSOToken, { algorithm: 'HS256' });</code></pre>\n\n\n\n<p class=\"wp-block-paragraph\">For other programming languages, you can use an equivalent JWT library to create and sign the token with EchoRivo&#8217;s SSO Token.</p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are some examples of popular languages:</p>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"6-python\">Python</h6>\n\n\n\n<pre class=\"wp-block-code\"><code>import jwt;\n\n\nEchoRivo_sso_token = 'EchoRivoSSOToken'  # From Products -&gt; SSO -&gt; SSO Token\nuser = {\n    'email': 'joe@gmail.com',\n    'name': 'Joe Doe',\n}\n\ngenerated_jwt_token = jwt.encode(user, EchoRivo_sso_token, algorithm='HS256')</code></pre>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"6-ruby\">Ruby</h6>\n\n\n\n<pre class=\"wp-block-code\"><code>require 'jwt'\n\nEchoRivo_sso_token = 'EchoRivoSSOToken'  # From Products -&gt; SSO -&gt; SSO Token\nuser = {\n    'email': 'joe@gmail.com',\n    'name': 'Joe Doe',\n}\n\ngenerated_jwt_token = JWT.encode(user, EchoRivo_sso_token, 'HS256')</code></pre>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"6-php\">PHP</h6>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\nrequire 'vendor/autoload.php';\n\nuse \\Firebase\\JWT\\JWT;\n\n$EchoRivo_sso_token = 'EchoRivoSSOToken'; // From Products -&gt; SSO -&gt; SSO Token\n$user = &#91;\n'email' =&gt; 'joe@gmail.com',\n'name' =&gt; 'Joe Doe',\n];\n$generated_jwt_token = JWT::encode($user, $EchoRivo_sso_token, 'HS256');</code></pre>\n\n\n\n<p class=\"wp-block-paragraph\">By following these examples, you can implement EchoRivo&#8217;s SSO feature in your preferred programming language. Once the JWT token is generated, signed, and sent to the&nbsp;<strong>`redirectUrl`&nbsp;</strong>provided by EchoRivo, your users will be able to seamlessly interact with your platform, making it easier for them to upvote, comment, and submit feature requests.</p>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s it! Those were the steps on how to manage EchoRivo&#8217;s SSO feature.</p>\n\n\n\n<p class=\"wp-block-paragraph\"></p>\n", "protected": false}, "excerpt": {"rendered": "<p>Single Sign-On (SSO) is an identification method that allows users to access multiple applications and websites with just one set of login credentials. EchoRivo&#8217;s Single Sign-On (SSO) feature streamlines the process of user identification, allowing your customers to upvote, comment, or create a feature request without needing to go through additional email verification steps.By integrating [&hellip;]</p>\n", "protected": false}, "author": 1, "featured_media": 0, "comment_status": "open", "ping_status": "closed", "template": "", "meta": {"footnotes": ""}, "doc_category": [12], "doc_tag": [], "class_list": ["post-117", "docs", "type-docs", "status-publish", "hentry", "doc_category-miscellaneous-stuff"], "year_month": "2026-10", "word_count": 567, "total_views": "259", "reactions": {"happy": "0", "normal": "0", "sad": "0"}, "author_info": {"name": "mehedi@99robots.com", "author_nicename": "mehedi99robots-com", "author_url": "/author/mehedi99robots-com/"}, "doc_category_info": [{"term_name": "Miscellaneous Stuff", "term_url": "/docs-category/miscellaneous-stuff/"}], "doc_tag_info": [], "yoast_head": "<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\\/\\/yoast.com\\/product\\/yoast-seo-wordpress\\/ -->\n<title>How to Manage EchoRivo&#039;s Single Sign-On (SSO) Feature - EchoRivo</title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" />\n<link rel=\"canonical\" href=\"/docs/how-to-manage-EchoRivos-single-sign-on-sso-feature/\" />\n<meta property=\"og:locale\" content=\"en_US\" />\n<meta property=\"og:type\" content=\"article\" />\n<meta property=\"og:title\" content=\"How to Manage EchoRivo&#039;s Single Sign-On (SSO) Feature - EchoRivo\" />\n<meta property=\"og:description\" content=\"Single Sign-On (SSO) is an identification method that allows users to access multiple applications and websites with just one set of login credentials. EchoRivo&#8217;s Single Sign-On (SSO) feature streamlines the process of user identification, allowing your customers to upvote, comment, or create a feature request without needing to go through additional email verification steps.By integrating [&hellip;]\" />\n<meta property=\"og:url\" content=\"/docs/how-to-manage-EchoRivos-single-sign-on-sso-feature/\" />\n<meta property=\"og:site_name\" content=\"EchoRivo\" />\n<meta property=\"article:publisher\" content=\"https:\\/\\/web.facebook.com\\/EchoRivoai\" />\n<meta name=\"twitter:card\" content=\"summary_large_image\" />\n<meta name=\"twitter:label1\" content=\"Est. reading time\" />\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" />\n<script type=\"application/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\/\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\/\\/help.echorivo.com\\/docs\\/how-to-manage-EchoRivos-single-sign-on-sso-feature\\/\",\"url\":\"https:\\/\\/help.echorivo.com\\/docs\\/how-to-manage-EchoRivos-single-sign-on-sso-feature\\/\",\"name\":\"How to Manage EchoRivo's Single Sign-On (SSO) Feature - EchoRivo\",\"isPartOf\":{\"@id\":\"https:\\/\\/help.echorivo.com\\/#website\"},\"datePublished\":\"2024-08-12T14:09:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\\/\\/help.echorivo.com\\/docs\\/how-to-manage-EchoRivos-single-sign-on-sso-feature\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\/\\/help.echorivo.com\\/docs\\/how-to-manage-EchoRivos-single-sign-on-sso-feature\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\/\\/help.echorivo.com\\/docs\\/how-to-manage-EchoRivos-single-sign-on-sso-feature\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\/\\/help.echorivo.com\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\\/\\/help.echorivo.com\\/docs\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Manage EchoRivo&#8217;s Single Sign-On (SSO) Feature\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\/\\/help.echorivo.com\\/#website\",\"url\":\"https:\\/\\/help.echorivo.com\\/\",\"name\":\"EchoRivo\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\/\\/help.echorivo.com\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\/\\/help.echorivo.com\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\/\\/help.echorivo.com\\/#organization\",\"name\":\"EchoRivo\",\"url\":\"https:\\/\\/help.echorivo.com\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\/\\/help.echorivo.com\\/#\\/schema\\/logo\\/image\\/\",\"url\":\"https:\\/\\/help.echorivo.com\\/wp-content\\/uploads\\/2024\\/08\\/download.webp\",\"contentUrl\":\"https:\\/\\/help.echorivo.com\\/wp-content\\/uploads\\/2024\\/08\\/download.webp\",\"width\":512,\"height\":512,\"caption\":\"EchoRivo\"},\"image\":{\"@id\":\"https:\\/\\/help.echorivo.com\\/#\\/schema\\/logo\\/image\\/\"},\"sameAs\":[\"https:\\/\\/web.facebook.com\\/EchoRivoai\",\"https:\\/\\/www.linkedin.com\\/company\\/EchoRivo\\/about\\/\"]}]}</script>\n<!-- / Yoast SEO plugin. -->", "yoast_head_json": {"title": "How to Manage EchoRivo's Single Sign-On (SSO) Feature - EchoRivo", "robots": {"index": "index", "follow": "follow", "max-snippet": "max-snippet:-1", "max-image-preview": "max-image-preview:large", "max-video-preview": "max-video-preview:-1"}, "canonical": "/docs/how-to-manage-EchoRivos-single-sign-on-sso-feature/", "og_locale": "en_US", "og_type": "article", "og_title": "How to Manage EchoRivo's Single Sign-On (SSO) Feature - EchoRivo", "og_description": "Single Sign-On (SSO) is an identification method that allows users to access multiple applications and websites with just one set of login credentials. EchoRivo&#8217;s Single Sign-On (SSO) feature streamlines the process of user identification, allowing your customers to upvote, comment, or create a feature request without needing to go through additional email verification steps.By integrating [&hellip;]", "og_url": "/docs/how-to-manage-EchoRivos-single-sign-on-sso-feature/", "og_site_name": "EchoRivo", "article_publisher": "https:\\/\\/web.facebook.com\\/EchoRivoai", "twitter_card": "summary_large_image", "twitter_misc": {"Est. reading time": "3 minutes"}, "schema": {"@context": "https:\\/\\/schema.org", "@graph": [{"@type": "WebPage", "@id": "/docs/how-to-manage-EchoRivos-single-sign-on-sso-feature/", "url": "/docs/how-to-manage-EchoRivos-single-sign-on-sso-feature/", "name": "How to Manage EchoRivo's Single Sign-On (SSO) Feature - EchoRivo", "isPartOf": {"@id": "/#website"}, "datePublished": "2024-08-12T14:09:59+00:00", "breadcrumb": {"@id": "/docs/how-to-manage-EchoRivos-single-sign-on-sso-feature/#breadcrumb"}, "inLanguage": "en-US", "potentialAction": [{"@type": "ReadAction", "target": ["/docs/how-to-manage-EchoRivos-single-sign-on-sso-feature/"]}]}, {"@type": "BreadcrumbList", "@id": "/docs/how-to-manage-EchoRivos-single-sign-on-sso-feature/#breadcrumb", "itemListElement": [{"@type": "ListItem", "position": 1, "name": "Home", "item": "/"}, {"@type": "ListItem", "position": 2, "name": "Docs", "item": "/docs/"}, {"@type": "ListItem", "position": 3, "name": "How to Manage EchoRivo&#8217;s Single Sign-On (SSO) Feature"}]}, {"@type": "WebSite", "@id": "/#website", "url": "/", "name": "EchoRivo", "description": "", "publisher": {"@id": "/#organization"}, "potentialAction": [{"@type": "SearchAction", "target": {"@type": "EntryPoint", "urlTemplate": "/?s={search_term_string}"}, "query-input": {"@type": "PropertyValueSpecification", "valueRequired": true, "valueName": "search_term_string"}}], "inLanguage": "en-US"}, {"@type": "Organization", "@id": "/#organization", "name": "EchoRivo", "url": "/", "logo": {"@type": "ImageObject", "inLanguage": "en-US", "@id": "/#/schema/logo/image/", "url": "/__assets/help.echorivo.com/wp-content/uploads/2024/08/download.webp", "contentUrl": "/__assets/help.echorivo.com/wp-content/uploads/2024/08/download.webp", "width": 512, "height": 512, "caption": "EchoRivo"}, "image": {"@id": "/#/schema/logo/image/"}, "sameAs": ["https:\\/\\/web.facebook.com\\/EchoRivoai", "https:\\/\\/www.linkedin.com\\/company\\/EchoRivo\\/about\\/"]}]}}, "knowledge_base_info": [], "knowledge_base_slug": [], "_links": {"self": [{"href": "/__assets/help.echorivo.com/wp-json/wp/v2/docs/117", "targetHints": {"allow": ["GET"]}}], "collection": [{"href": "/wp-json/wp/v2/docs"}], "about": [{"href": "/wp-json/wp/v2/types/docs"}], "author": [{"embeddable": true, "href": "/wp-json/wp/v2/users/1"}], "replies": [{"embeddable": true, "href": "/wp-json/wp/v2/comments?post=117"}], "version-history": [{"count": 1, "href": "/wp-json/wp/v2/docs/117/revisions"}], "predecessor-version": [{"id": 118, "href": "/wp-json/wp/v2/docs/117/revisions/118"}], "wp:attachment": [{"href": "/wp-json/wp/v2/media?parent=117"}], "wp:term": [{"taxonomy": "doc_category", "embeddable": true, "href": "/wp-json/wp/v2/doc_category?post=117"}, {"taxonomy": "doc_tag", "embeddable": true, "href": "/wp-json/wp/v2/doc_tag?post=117"}], "curies": [{"name": "wp", "href": "https:\\/\\/api.w.org\\/{rel}", "templated": true}]}}