{"id":27295,"date":"2023-08-31T08:52:37","date_gmt":"2023-08-31T08:52:37","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/sagex3\/?p=27295"},"modified":"2026-03-12T06:32:44","modified_gmt":"2026-03-12T06:32:44","slug":"how-to-use-oauth-2-0-functionality-in-sage-x3","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2023\/08\/31\/how-to-use-oauth-2-0-functionality-in-sage-x3\/","title":{"rendered":"How to Use OAuth 2.0 Functionality in Sage X3"},"content":{"rendered":"\n<p>OAuth is an open-standard authorization framework which provides authorization flows for web and desktop applications, as well as mobile devices.<\/p>\n\n\n\n<p><strong>OAuth examples:<\/strong><\/p>\n\n\n\n<p>An example of OAuth is when user wants to login to a particular application or website you it will offers one or more opportunities to log on using another website\u2019s\/service\u2019s logon. User then click on button linked to other website of authenticator which authenticates user and then user will be connecting to original website you wish to login itself using permission approved from the second website.<\/p>\n\n\n\n<p>OAuth 2.0 is another authentication and authorization framework commonly used to enable secure access to sources, APIs, and applications. here&#8217;s a general overview of how OAuth 2.0 might be implemented in Sage X3:<\/p>\n\n\n\n<p>OAuth 2.0 is usually giving to grant third-party applications and restrict the access to user accounts.<\/p>\n\n\n\n<p>Below is the scree showing the option to add the Oauth on&nbsp; X3<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"514\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/08\/fig1-2-1024x514.png\" alt=\"\" class=\"wp-image-27296\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/08\/fig1-2-1024x514.png 1024w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/08\/fig1-2-300x150.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/08\/fig1-2-768x385.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/08\/fig1-2-660x331.png 660w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/08\/fig1-2.png 1332w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>Fig1.OAuth2 on Navigation page in Sage X3<\/strong><\/figcaption><\/figure>\n\n\n\n<p>OAuth allows websites and services to share the user assets which is widely accepted.<\/p>\n\n\n\n<p><strong><u>Configuration<\/u><\/strong><\/p>\n\n\n\n<p>Creating an OAuth2 Service<\/p>\n\n\n\n<p>Go to Administration &gt; Administration &gt; Settings &gt; Authentication &gt; OAuth2 Servers.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click New OAuth2 service.<\/li>\n\n\n\n<li>Enter the following values:<\/li>\n\n\n\n<li>Name: Google<\/li>\n\n\n\n<li>Display name: Sign in via Google (This value will be displayed on the X3 login screen as a button.)<\/li>\n\n\n\n<li>URL for authorization: <a href=\"https:\/\/accounts.google.com\/o\/oauth2\/auth\" target=\"_blank\" rel=\"noopener\">https:\/\/accounts.google.com\/o\/oauth2\/auth<\/a><\/li>\n\n\n\n<li>URL to get access token: <a href=\"https:\/\/accounts.google.com\/o\/oauth2\/token\" target=\"_blank\" rel=\"noopener\">https:\/\/accounts.google.com\/o\/oauth2\/token<\/a><\/li>\n\n\n\n<li>OAuth2 client ID and OAuth2 client secret: the values correspond to the the client ID and the client secret obtained at the end of the Creating a Client ID section.<\/li>\n\n\n\n<li>Scope for Oauth2 requests: <a href=\"https:\/\/www.googleapis.com\/auth\/userinfo.email\" target=\"_blank\" rel=\"noopener\">https:\/\/www.googleapis.com\/auth\/userinfo.email<\/a> <a href=\"https:\/\/www.googleapis.com\/auth\/userinfo.profile\" target=\"_blank\" rel=\"noopener\">https:\/\/www.googleapis.com\/auth\/userinfo.profile<\/a><\/li>\n\n\n\n<li>Batch Authentication: check this box<\/li>\n\n\n\n<li>URL for requesting user data: https:\/\/www.googleapis.com\/oauth2\/v1\/userinfo<\/li>\n\n\n\n<li>User field in user name answer: email<\/li>\n\n\n\n<li>Click Save.<\/li>\n<\/ul>\n\n\n\n<p><strong>Linking Your Users to an OAuth2 Service<\/strong><\/p>\n\n\n\n<p>You can now follow these steps to enable OAuth2 authentication for a user:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In X3, go to Administration > Administration > Users > Users.<\/li>\n\n\n\n<li>Select OAuth2 as the Authentication method.<\/li>\n\n\n\n<li>In the OAuth2 instance field, select the google service.<\/li>\n\n\n\n<li>Set Email to the user\u2019s Google email address.<\/li>\n\n\n\n<li>Click Save.<\/li>\n<\/ul>\n\n\n\n<p>Repeat these steps for any users executing web services.<\/p>\n\n\n\n<p><strong><u>Logging In with OAuth2<\/u><\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>OAuth2 is not just for web services; it can provide another way for users to sign in.<\/li>\n\n\n\n<li>Click the Sign in via Google button on the login screen.<\/li>\n\n\n\n<li>Once redirected to the Google site, authenticate using your Google account, if not already done.<\/li>\n\n\n\n<li>When prompted to, allow X3 to access your Google profile when logging in for the first time.<\/li>\n\n\n\n<li>You can also add a direct link (e.g., https:\/\/mycompany.sagex3.com\/auth\/oauth2\/Google\/loginStart) to your bookmarks and use it to log in.<\/li>\n<\/ul>\n\n\n\n<p>In all cases, two or more services are being used for one transaction by the end-user, and every end-user would appreciate not being asked to log in a second time for what they feel is a single transaction. Oauth can work on, the end-user\u2019s client software (e.g., a browser), the services involved and authentication provider must support the right version of OAuth (1.0 v to &nbsp;2.0v).<\/p>\n\n\n\n<p><strong>About Us<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a>&nbsp;\u2013 a globally recognized Premier Sage Gold Development Partner is a one-stop solution provider for Sage ERP and Sage CRM needs. Being recognized and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development and implementation expertise.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a>&nbsp;caters to a wide range of Sage X3 (Sage Enterprise Management) offerings \u2013 a Sage Business Cloud Solution. Our&nbsp;unique GUMU&#x2122; integrations include&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/sage-crm\/gumu-sage-x3-integration\">Sage X3 for Sage CRM<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/sage-x3\/gumu-x3-salesforce-integration\">Salesforce.com<\/a>&nbsp;and&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/magento-sage-integrations\/sage-x3-magento\">Magento eCommerce<\/a>&nbsp;along with Implementation and Technical Support worldwide for&nbsp;<a href=\"https:\/\/www.greytrix.com\/africa\/product\/consulting\/implementation-planning\">Sage X3<\/a>&nbsp;(Sage Enterprise Management). Currently we are&nbsp;<a href=\"https:\/\/www.greytrix.com\/africa\">Sage X3 Implementation Partner<\/a>&nbsp;in East Africa, Middles East, Australia, Asia.&nbsp;We also offer best-in-class&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\">Sage X3 customization and development services<\/a>,&nbsp;integrated applications such as&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/sage-enterprise-management-integration-services\/pos-system\">POS<\/a>&nbsp;|&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/sage-enterprise-management-integration-services\/warehouse-management-system\">WMS<\/a>&nbsp;|&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/sage-enterprise-management-integration-services\/payment-gateway\">Payment Gateway<\/a>&nbsp;|&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/sage-enterprise-management-integration-services\/shipping-system\">Shipping System<\/a>&nbsp;|&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/sage-enterprise-management-integration-services\/business-intelligence\">Business Intelligence<\/a>&nbsp;|&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/sage-x3\/ecommerce-magento-integration\">eCommerce<\/a>&nbsp;and have developed add-ons such as&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/sage-enterprise-management-add-ons\/catch-weight\">Catch \u2013 Weight&nbsp;<\/a>&nbsp;and&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/sage-enterprise-management-add-ons\/letter-of-credit\">Letter of Credit<\/a>&nbsp;for Sage X3 to Sage business partners, end users and Sage PSG worldwide.<\/p>\n\n\n\n<p>Greytrix is a recognized&nbsp;<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/26\/greytrix-on-boards-sage-global-rockstar-isv-program-with-gumu-for-sage-crm-sage-x3-solution\/\">Sage Rockstar ISV Partner<\/a>&nbsp;for GUMU&#x2122; Sage X3 \u2013 Sage CRM integration also listed on&nbsp;<a href=\"https:\/\/www.sage.com\/marketplace\/asb_ListingDetail?listingId=a1h24000007PC3aAAG\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Marketplace<\/a>; GUMU&#x2122; integration for Sage X3 \u2013 Salesforce is a 5-star app listed on&nbsp;<a href=\"https:\/\/appexchange.salesforce.com\/listingDetail?listingId=a0N30000000psM5EAI\" target=\"_blank\" rel=\"noreferrer noopener\">Salesforce AppExchange<\/a>.<\/p>\n\n\n\n<p>For more information on Sage X3 Integration and Services, please contact us at&nbsp;<a href=\"mailto:x3@greytrix.com\">x3@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OAuth is an open-standard authorization framework which provides authorization flows for web and desktop applications, as well as mobile devices. OAuth examples: An example of OAuth is when user wants to login to a particular application or website you it will offers one or more opportunities to log on using another website\u2019s\/service\u2019s logon. User then\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2023\/08\/31\/how-to-use-oauth-2-0-functionality-in-sage-x3\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,2,5,3162,13,3642,9,10,2796,11],"tags":[3848,3849,3850,1780,1822,1839,2871,1945],"class_list":["post-27295","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","category-configuration","category-features","category-greytrix","category-integration","category-sage-x3","category-sage-x3-consulting","category-standard","category-technical","category-tips","tag-oauth-2-0","tag-oauth-examples","tag-oauth2-on-navigation","tag-sage-erp-x3","tag-sage-x3","tag-sage-x3-blogs","tag-sage-x3-functional-blogs","tag-sage-x3-technical-blogs"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/27295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=27295"}],"version-history":[{"count":6,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/27295\/revisions"}],"predecessor-version":[{"id":31916,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/27295\/revisions\/31916"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=27295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=27295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=27295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}