{"id":992,"date":"2022-02-07T20:39:41","date_gmt":"2022-02-07T20:39:41","guid":{"rendered":"https:\/\/logicbuilder.integroscrm.com\/help\/?page_id=992"},"modified":"2022-08-10T16:24:04","modified_gmt":"2022-08-10T16:24:04","slug":"oauth2-authentication","status":"publish","type":"page","link":"https:\/\/logicbuilder.integroscrm.com\/help\/oauth2-authentication\/","title":{"rendered":"OAuth2 Authentication"},"content":{"rendered":"\n<p><a name=\"abstract\"><\/a>Allows authenticating to complete REST API requests through&nbsp;<a href=\"https:\/\/oauth.net\/2\/\" rel=\"noreferrer noopener\" target=\"_blank\">OAuth2<\/a>.<\/p>\n\n\n\n<p><strong>inputs:<\/strong><\/p>\n\n\n\n<p><span style=\"color:#9ed267;\">url<\/span> &#8211; provide OAuth 2.0 endpoint to retrieve the token portion of the OAuth 2.0 specification<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n\n<p><span style=\"color:#9ed267;\">grant type<\/span> &#8211; select from the list needed grant type and link with the value from Constants or Named Constant, etc:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>authorization_code<\/li><li>password<\/li><li>client_credentionals<\/li><\/ol>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n\n<p><span style=\"color:#9ed267;\">parameter<\/span> &#8211; select one or several (using &#8220;+&#8221;)&nbsp;authorization&nbsp;parameters of OAuth2 authentications:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>client_id<\/li><li>client_sercet<\/li><li>username<\/li><li>password<\/li><li>code<\/li><li>redirect uri<\/li><li>response_type<\/li><\/ol>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n\n<p><span style=\"color:#ec8f45;\">additional params<\/span> &#8211; specify any additional parameters that aren&#8217;t available above. To specify additional parameters build them in the same way as <span style=\"color:#ec8f45;\"><em>query parameters<\/em><\/span> in <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/rest-client\/\">Rest Client<\/a> (e.g. using <span style=\"color:#ec8f45;\">Structures<\/span>)<\/p>\n\n\n\n<p><strong>outputs:<\/strong><\/p>\n\n\n\n<p><span style=\"color:#ec8f45;\">authentication<\/span> &#8211; OAuth2 authentication, link it to the input port <span style=\"color:#ec8f45;\"><em>authentication<\/em><\/span> of <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/rest-client\/\">Rest Client<\/a><\/p>\n\n\n\n<p><em>here is an example of filling&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/support.sugarcrm.com\/Documentation\/Sugar_Developer\/Sugar_Developer_Guide_11.0\/Integration\/Web_Services\/REST_API\/Endpoints\/oauth2token_POST\/\" target=\"_blank\">OAuth2 to authenticate in Sugar<\/a>:<\/em><\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-127-ca06ad58137247f292c0888d0d56cb5b.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-127-ca06ad58137247f292c0888d0d56cb5b-1024x566.png\" alt=\"\" class=\"wp-image-378\"><\/a><\/p><div style=\"text-align:left\" class=\"yasr-auto-insert-visitor\"><!--Yasr Visitor Votes Shortcode--><div id='yasr_visitor_votes_992' class='yasr-visitor-votes'><div class=\"yasr-custom-text-vv-before yasr-custom-text-vv-before-992\">Click to rate this post!<\/div><div id='yasr-vv-second-row-container-b9499c5eb8f60' \n                                        class='yasr-vv-second-row-container'><div id='yasr-visitor-votes-rater-b9499c5eb8f60'\n                                      class='yasr-rater-stars-vv'\n                                      data-rater-postid='992' \n                                      data-rating='0'\n                                      data-rater-starsize='24'\n                                      data-rater-readonly='false'\n                                      data-rater-nonce='fa81b01ba5' \n                                      data-issingular='false'\n                                    ><\/div><div class=\"yasr-vv-stats-text-container\" id=\"yasr-vv-stats-text-container-b9499c5eb8f60\"><svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" \n                               class=\"yasr-dashicons-visitor-stats\"\n                               data-postid=\"992\" \n                               id=\"yasr-stats-dashicon-b9499c5eb8f60\">\n                            <path d=\"M18 18v-16h-4v16h4zM12 18v-11h-4v11h4zM6 18v-8h-4v8h4z\"><\/path>\n                          <\/svg><span id=\"yasr-vv-text-container-b9499c5eb8f60\" class=\"yasr-vv-text-container\">[Total: <span id=\"yasr-vv-votes-number-container-b9499c5eb8f60\">0<\/span>  Average: <span id=\"yasr-vv-average-container-b9499c5eb8f60\">0<\/span>]<\/span><\/div><div id='yasr-vv-loader-b9499c5eb8f60' class='yasr-vv-container-loader'><\/div><\/div><div id='yasr-vv-bottom-container-b9499c5eb8f60' class='yasr-vv-bottom-container'><\/div><\/div><!--End Yasr Visitor Votes Shortcode--><\/div>","protected":false},"excerpt":{"rendered":"<p>Allows authenticating to complete REST API requests through&nbsp;OAuth2. inputs: url &#8211; provide OAuth 2.0 endpoint to retrieve the token portion of the OAuth 2.0 specification Required: yes grant type &#8211; select from the list needed grant type and link with the value from Constants or Named Constant, etc: authorization_code password client_credentionals Required: yes parameter &#8211; &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/logicbuilder.integroscrm.com\/help\/oauth2-authentication\/\"> <span class=\"screen-reader-text\">OAuth2 Authentication<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"tags":[],"class_list":["post-992","page","type-page","status-publish","hentry"],"yasr_visitor_votes":{"number_of_votes":0,"sum_votes":0,"stars_attributes":{"read_only":false,"span_bottom":false}},"_links":{"self":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/comments?post=992"}],"version-history":[{"count":4,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/992\/revisions"}],"predecessor-version":[{"id":2104,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/992\/revisions\/2104"}],"wp:attachment":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/media?parent=992"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/tags?post=992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}