{"id":61,"date":"2021-08-15T20:31:36","date_gmt":"2021-08-15T12:31:36","guid":{"rendered":"https:\/\/pearsongang.com\/?p=61"},"modified":"2021-08-15T20:31:42","modified_gmt":"2021-08-15T12:31:42","slug":"business-central-webservice-password","status":"publish","type":"post","link":"https:\/\/pearsongang.com\/?p=61","title":{"rendered":"Business Central &#8211; Webservice &#8211; Password"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/pearsongang.com\/wp-content\/uploads\/2021\/08\/image-2.png?resize=229%2C237&#038;ssl=1\" alt=\"\" class=\"wp-image-64\" width=\"229\" height=\"237\" srcset=\"https:\/\/i0.wp.com\/pearsongang.com\/wp-content\/uploads\/2021\/08\/image-2.png?w=509&amp;ssl=1 509w, https:\/\/i0.wp.com\/pearsongang.com\/wp-content\/uploads\/2021\/08\/image-2.png?resize=290%2C300&amp;ssl=1 290w\" sizes=\"auto, (max-width: 229px) 100vw, 229px\" \/><figcaption><strong>where has my time gone<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<p>This one wasted a lot of my time. We were building a custom connector to Business Central to test a few concepts. I come from a Dynamics 365 CE background and  Business Central is a foreign system to me. Well how hard can it be. Business Central not so bad, but same strange concepts. This is a subject for a different post.<\/p>\n\n\n\n<p>This post is about using &#8216;Basic Authentication&#8217; to connect to a test custom connector using postman. For &#8216;Basic Authentication&#8217; you use a User Name and password. The User Name to use is &#8216;User Name&#8217; not the email address. The password is the web service access key (as below). <br><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/pearsongang.com\/wp-content\/uploads\/2021\/08\/image-1.png?resize=523%2C392&#038;ssl=1\" alt=\"\" class=\"wp-image-63\" width=\"523\" height=\"392\" srcset=\"https:\/\/i0.wp.com\/pearsongang.com\/wp-content\/uploads\/2021\/08\/image-1.png?resize=1024%2C770&amp;ssl=1 1024w, https:\/\/i0.wp.com\/pearsongang.com\/wp-content\/uploads\/2021\/08\/image-1.png?resize=300%2C226&amp;ssl=1 300w, https:\/\/i0.wp.com\/pearsongang.com\/wp-content\/uploads\/2021\/08\/image-1.png?resize=768%2C577&amp;ssl=1 768w, https:\/\/i0.wp.com\/pearsongang.com\/wp-content\/uploads\/2021\/08\/image-1.png?w=1136&amp;ssl=1 1136w\" sizes=\"auto, (max-width: 523px) 100vw, 523px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><br>And here&#8217;s the HOWEVER, <\/p>\n\n\n\n<p>You copy the characters, (to long to type for me)<br>Try sending the postman package.<br>But it fails non.<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\"><br> &#8216;<strong>Authentication_InvalidCredentials&#8217; &#8211; The server has rejected the client credentials.<\/strong><\/p>\n\n\n\n<p><strong><br><\/strong><br>So you try again, re-initialise the password etc. <\/p>\n\n\n\n<p>Eventually you look at the &#8216;page source of Business Connect&#8217;s &#8216;User Card&#8217; and &#8230;.<br>You have another look, the number of characters are different.<br>You double check this.<br>You post the longer password into postman<br><br>What it works now. Conclusion, the number of characters are not the same. The last few characters were missing.<\/p>\n\n\n\n<p>Wow&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This one wasted a lot of my time. We were building a custom connector to Business Central to test a few concepts. I come from a Dynamics 365 CE background and Business Central is a foreign system to me. Well how hard can it be. Business Central not so bad, but same strange concepts. This [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","om_disable_all_campaigns":false,"WB4WB4WP_MODE":"","WB4WP_PAGE_SCRIPTS":"","WB4WP_PAGE_STYLES":"","WB4WP_PAGE_FONTS":"","WB4WP_PAGE_HEADER":"","WB4WP_PAGE_FOOTER":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[15,1],"tags":[16],"class_list":["post-61","post","type-post","status-publish","format-standard","hentry","category-business-central","category-uncategorized","tag-time-wasters-business-central-authentication"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pearsongang.com\/index.php?rest_route=\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pearsongang.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pearsongang.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pearsongang.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pearsongang.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=61"}],"version-history":[{"count":3,"href":"https:\/\/pearsongang.com\/index.php?rest_route=\/wp\/v2\/posts\/61\/revisions"}],"predecessor-version":[{"id":66,"href":"https:\/\/pearsongang.com\/index.php?rest_route=\/wp\/v2\/posts\/61\/revisions\/66"}],"wp:attachment":[{"href":"https:\/\/pearsongang.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pearsongang.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pearsongang.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}