{"id":146047,"date":"2016-11-06T07:28:24","date_gmt":"2016-11-06T15:28:24","guid":{"rendered":"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/"},"modified":"2016-11-06T07:28:24","modified_gmt":"2016-11-06T15:28:24","slug":"configure-oauth2-google-orocrm","status":"publish","type":"post","link":"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/","title":{"rendered":"Configure OAuth2 with Google in OroCRM"},"content":{"rendered":"<p><iframe loading=\"lazy\" title=\"How to Configure OAuth2 with Google in OroCRM\" width=\"711\" height=\"400\" src=\"https:\/\/www.youtube.com\/embed\/xKf5UR8t2AE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p><span style=\"font-weight: 400\">Welcome to OroCRM\u2019s video tutorial series. This is Alex with OroCRM and today I\u2019ll be demonstrating how to enable OAuth2 in Gmail. \u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Google recently implemented OAuth2 as a way to improve security of connections going into the Google for Business environment. \u00a0In order to comply with Google\u2019s best practices OAuth2 connections are now supported in OroCRM. \u00a0An additional advantage is that individual users will not have to configure their IMAP\/SMTP credentials individually, instead, this will be set up by Google account password validation.<\/span><\/p>\n<p><span style=\"font-weight: 400\">During this demo I will create an API connection and generate necessary credentials in Google\u2019s admin panel. \u00a0Following that, I will Configure OAuth2 in OroCRM. \u00a0Finally, I will connect an individual OroCRM user\u2019s mailbox using OAuth2. \u00a0In order to complete these steps on your own you will need access to Google\u2019s developer panel. \u00a0If you do not have the necessary access speak with your email administrator. \u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">To begin, sign into your Google user account with necessary permissions.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Next, navigate to console.developers.google.com.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Make sure you are on the Dashboard tab on the left hand side<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click \u201cEnable API\u201d<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the following screen click \u201cGmail API\u201d<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Now click \u201cEnable\u201d in the upper portion of the screen<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click on the \u201cCredentials\u201d tab on the left hand side<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click \u201cOAuth consent screen\u201d tab <\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Enter at least the \u201cProduct name shown to users\u201d field, \u00a0The others are optional. \u00a0Click save<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Next click the \u201cCreate Credentials\u201d dropdown and select the \u201cOAuth client ID\u201d option<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the follow page select Web Application <\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Enter the Name field and insert the url of your OroCRM application under \u201cAuthorized JavaScript origins\u201d. \u00a0Be sure to remove the trailing slash or the URL will be rejected.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click Create<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the next popup you will be presented with a Client ID and Client secret key. \u00a0Copy these to a secure location and click OK<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">This concludes the configuration portion for Google. \u00a0To disable this connection simply disable the API from the developer dashboard.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Now we will configure the integration in OroCRM. \u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Begin by logging into OroCRM as an administrator. \u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Navigate to System &gt; Configuration<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Then navigate to Integrations &gt; Google Settings<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Enter the Client ID and Client Secret generated in the previous steps <\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click Enable under OAuth 2<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In the popup window from Google click \u201cAllow\u201d<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">You\u2019ll note a green \u201cAuthorization was successful\u201d notification<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click \u201cSave Settings\u201d in the upper right hand corner<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Finally, we will configure an individual OroCRM user\u2019s email using this new method. \u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click your username in the upper right hand corner and select \u201cMy Configuration\u201d <\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Navigate to Email Configuration<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select Account type \u201cGmail\u201d and click Connect<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In the popup window verify that the email address you want to use is listed in the upper right hand corner. \u00a0If you are signed into multiple accounts you may need to select another<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click \u201cAllow\u201d<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Lastly, select the folders that you are interested in syncing with OroCRM and click \u201cSave Settings\u201d in the upper right hand corner.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Thanks for watching. \u00a0You can check out more video tutorials on our website at our <a href=\"https:\/\/oroinc.com\/orocrm\/media-library\/\" target=\"_blank\" rel=\"noopener noreferrer\">CRM learning<\/a> center.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to OroCRM\u2019s video tutorial series. This is Alex with OroCRM and today I\u2019ll be demonstrating how to enable OAuth2 in Gmail. \u00a0 Google recently implemented OAuth2 as a way to improve security of connections going into the Google for Business environment. \u00a0In order to comply with Google\u2019s best practices OAuth2 connections are now supported [&hellip;]<\/p>\n","protected":false},"author":44013,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[6],"tags":[133],"class_list":{"0":"post-146047","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-product-news-updates","7":"tag-orocrm"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Configure OAuth2 with Google in OroCRM | OroCommerce<\/title>\n<meta name=\"description\" content=\"In order to comply with Google\u2019s best practices OAuth2 connections are now supported in OroCRM. Individual users will not have to configure their IMAP\/SMTP.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configure OAuth2 with Google in OroCRM | OroCommerce\" \/>\n<meta property=\"og:description\" content=\"In order to comply with Google\u2019s best practices OAuth2 connections are now supported in OroCRM. Individual users will not have to configure their IMAP\/SMTP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/\" \/>\n<meta property=\"og:site_name\" content=\"OroCommerce\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/OroCommerce-333319140210515\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-06T15:28:24+00:00\" \/>\n<meta name=\"author\" content=\"Oro Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@orocommerce\" \/>\n<meta name=\"twitter:site\" content=\"@orocommerce\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oro Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/\"},\"author\":{\"name\":\"Oro Team\",\"@id\":\"https:\/\/oroinc.com\/b2b-ecommerce\/#\/schema\/person\/4668389a908cbec4f872097fc097bb4b\"},\"headline\":\"Configure OAuth2 with Google in OroCRM\",\"datePublished\":\"2016-11-06T15:28:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/\"},\"wordCount\":537,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/oroinc.com\/b2b-ecommerce\/#organization\"},\"keywords\":[\"OroCRM\"],\"articleSection\":[\"Product News &amp; Updates\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/\",\"url\":\"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/\",\"name\":\"Configure OAuth2 with Google in OroCRM | OroCommerce\",\"isPartOf\":{\"@id\":\"https:\/\/oroinc.com\/b2b-ecommerce\/#website\"},\"datePublished\":\"2016-11-06T15:28:24+00:00\",\"description\":\"In order to comply with Google\u2019s best practices OAuth2 connections are now supported in OroCRM. Individual users will not have to configure their IMAP\/SMTP.\",\"breadcrumb\":{\"@id\":\"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/oroinc.com\/b2b-ecommerce\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Product News &amp; Updates\",\"item\":\"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/category\/product-news-updates\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Configure OAuth2 with Google in OroCRM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/oroinc.com\/b2b-ecommerce\/#website\",\"url\":\"https:\/\/oroinc.com\/b2b-ecommerce\/\",\"name\":\"OroCommerce\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/oroinc.com\/b2b-ecommerce\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/oroinc.com\/b2b-ecommerce\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/oroinc.com\/b2b-ecommerce\/#organization\",\"name\":\"Oro Inc.\",\"url\":\"https:\/\/oroinc.com\/b2b-ecommerce\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/oroinc.com\/b2b-ecommerce\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/oroinc.com\/b2b-ecommerce\/wp-content\/uploads\/sites\/3\/2019\/11\/Oro-OLogo.png\",\"contentUrl\":\"https:\/\/oroinc.com\/b2b-ecommerce\/wp-content\/uploads\/sites\/3\/2019\/11\/Oro-OLogo.png\",\"width\":40,\"height\":40,\"caption\":\"Oro Inc.\"},\"image\":{\"@id\":\"https:\/\/oroinc.com\/b2b-ecommerce\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/OroCommerce-333319140210515\/\",\"https:\/\/x.com\/orocommerce\",\"https:\/\/www.youtube.com\/channel\/UClxsA8HS9KGEEsvFRn7JkvQ\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/oroinc.com\/b2b-ecommerce\/#\/schema\/person\/4668389a908cbec4f872097fc097bb4b\",\"name\":\"Oro Team\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Configure OAuth2 with Google in OroCRM | OroCommerce","description":"In order to comply with Google\u2019s best practices OAuth2 connections are now supported in OroCRM. Individual users will not have to configure their IMAP\/SMTP.","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":"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/","og_locale":"en_US","og_type":"article","og_title":"Configure OAuth2 with Google in OroCRM | OroCommerce","og_description":"In order to comply with Google\u2019s best practices OAuth2 connections are now supported in OroCRM. Individual users will not have to configure their IMAP\/SMTP.","og_url":"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/","og_site_name":"OroCommerce","article_publisher":"https:\/\/www.facebook.com\/OroCommerce-333319140210515\/","article_published_time":"2016-11-06T15:28:24+00:00","author":"Oro Team","twitter_card":"summary_large_image","twitter_creator":"@orocommerce","twitter_site":"@orocommerce","twitter_misc":{"Written by":"Oro Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/#article","isPartOf":{"@id":"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/"},"author":{"name":"Oro Team","@id":"https:\/\/oroinc.com\/b2b-ecommerce\/#\/schema\/person\/4668389a908cbec4f872097fc097bb4b"},"headline":"Configure OAuth2 with Google in OroCRM","datePublished":"2016-11-06T15:28:24+00:00","mainEntityOfPage":{"@id":"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/"},"wordCount":537,"commentCount":0,"publisher":{"@id":"https:\/\/oroinc.com\/b2b-ecommerce\/#organization"},"keywords":["OroCRM"],"articleSection":["Product News &amp; Updates"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/","url":"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/","name":"Configure OAuth2 with Google in OroCRM | OroCommerce","isPartOf":{"@id":"https:\/\/oroinc.com\/b2b-ecommerce\/#website"},"datePublished":"2016-11-06T15:28:24+00:00","description":"In order to comply with Google\u2019s best practices OAuth2 connections are now supported in OroCRM. Individual users will not have to configure their IMAP\/SMTP.","breadcrumb":{"@id":"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/configure-oauth2-google-orocrm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/oroinc.com\/b2b-ecommerce\/"},{"@type":"ListItem","position":2,"name":"Product News &amp; Updates","item":"https:\/\/oroinc.com\/b2b-ecommerce\/blog\/category\/product-news-updates\/"},{"@type":"ListItem","position":3,"name":"Configure OAuth2 with Google in OroCRM"}]},{"@type":"WebSite","@id":"https:\/\/oroinc.com\/b2b-ecommerce\/#website","url":"https:\/\/oroinc.com\/b2b-ecommerce\/","name":"OroCommerce","description":"","publisher":{"@id":"https:\/\/oroinc.com\/b2b-ecommerce\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/oroinc.com\/b2b-ecommerce\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/oroinc.com\/b2b-ecommerce\/#organization","name":"Oro Inc.","url":"https:\/\/oroinc.com\/b2b-ecommerce\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/oroinc.com\/b2b-ecommerce\/#\/schema\/logo\/image\/","url":"https:\/\/oroinc.com\/b2b-ecommerce\/wp-content\/uploads\/sites\/3\/2019\/11\/Oro-OLogo.png","contentUrl":"https:\/\/oroinc.com\/b2b-ecommerce\/wp-content\/uploads\/sites\/3\/2019\/11\/Oro-OLogo.png","width":40,"height":40,"caption":"Oro Inc."},"image":{"@id":"https:\/\/oroinc.com\/b2b-ecommerce\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/OroCommerce-333319140210515\/","https:\/\/x.com\/orocommerce","https:\/\/www.youtube.com\/channel\/UClxsA8HS9KGEEsvFRn7JkvQ"]},{"@type":"Person","@id":"https:\/\/oroinc.com\/b2b-ecommerce\/#\/schema\/person\/4668389a908cbec4f872097fc097bb4b","name":"Oro Team"}]}},"_links":{"self":[{"href":"https:\/\/oroinc.com\/b2b-ecommerce\/wp-json\/wp\/v2\/posts\/146047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oroinc.com\/b2b-ecommerce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oroinc.com\/b2b-ecommerce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oroinc.com\/b2b-ecommerce\/wp-json\/wp\/v2\/users\/44013"}],"replies":[{"embeddable":true,"href":"https:\/\/oroinc.com\/b2b-ecommerce\/wp-json\/wp\/v2\/comments?post=146047"}],"version-history":[{"count":0,"href":"https:\/\/oroinc.com\/b2b-ecommerce\/wp-json\/wp\/v2\/posts\/146047\/revisions"}],"wp:attachment":[{"href":"https:\/\/oroinc.com\/b2b-ecommerce\/wp-json\/wp\/v2\/media?parent=146047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oroinc.com\/b2b-ecommerce\/wp-json\/wp\/v2\/categories?post=146047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oroinc.com\/b2b-ecommerce\/wp-json\/wp\/v2\/tags?post=146047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}