{"id":17948,"date":"2016-12-05T21:46:55","date_gmt":"2016-12-05T21:46:55","guid":{"rendered":"https:\/\/developer.kore.com\/?post_type=docs&#038;p=9115"},"modified":"2023-05-18T08:14:28","modified_gmt":"2023-05-18T07:14:28","slug":"setting-up-authorization-using-oauth-v2","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/advanced-topics\/authorization\/setting-up-authorization-using-oauth-v2\/","title":{"rendered":"Setting Up Authorization using OAuth v2"},"content":{"rendered":"<p><span style=\"font-weight: 400\">OAuth v2 is the new version of the open protocol to allow secure authorization via a standard method from web, mobile, and desktop applications.<\/span><\/p>\n<p><span style=\"font-weight: 400\">To use oAuth v2, you must first register an account with the web application as you will need the sign in credentials for that application to configure the settings for the Authorization Mechanism.<\/span><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h1><span class=\"ez-toc-section\" id=\"How_OAuth_v2_Works\"><span style=\"font-weight: 400\">How OAuth v2 Works<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">OAuth v2 authorization works as follows:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The XO Platform redirects the user to a login dialog at the web application.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The user authenticates.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The web application redirects the user back to the XO Platform with an access token.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The XO Platform validates the access token.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The access token allows the XO Platform to access a protected resource at the provider, on behalf of the user.<\/span><\/li>\n<\/ol>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Configuring_OAuth_v2_Authorization\"><span style=\"font-weight: 400\">Configuring OAuth v2 Authorization<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">To define Authorization for your assistant, using oAuth v2, follow these steps:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Open the assistant for which you want to configure an Authorization profile.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select the <\/span><strong>Build<\/strong><span style=\"font-weight: 400\"> tab from the top menu.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">From the left menus, click <\/span><strong>Configurations &gt; Authorization Profiles.<\/strong><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click<\/span><strong> Add<\/strong><span style=\"font-weight: 400\"> to open the <\/span><strong>New Authorization Mechanism<\/strong><span style=\"font-weight: 400\"> dialog.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155112\/add-authorization-2-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47392\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155112\/add-authorization-2-2-1024x456.png\" alt=\"\" width=\"640\" height=\"285\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155112\/add-authorization-2-2-1024x456.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155112\/add-authorization-2-2-300x134.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155112\/add-authorization-2-2.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><br \/><\/span><\/li>\n<li style=\"font-weight: 400\">In the <strong>Authorization Type<\/strong><span> drop-down list, select <\/span><strong>auth v2<\/strong><span>.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In the <\/span><strong>Name<\/strong><span style=\"font-weight: 400\"> field, enter the name for your authorization.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400\">The following illustration shows the <\/span><strong>oAuth v2<\/strong><span style=\"font-weight: 400\"> fields that you must define to enable authorization for your assistant.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155126\/oaut2-auth.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47401\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155126\/oaut2-auth-496x1024.png\" alt=\"\" width=\"496\" height=\"1024\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155126\/oaut2-auth-496x1024.png 496w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155126\/oaut2-auth-145x300.png 145w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155126\/oaut2-auth.png 524w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/a><br \/><\/span><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Defining_Configuration_Fields\"><span style=\"font-weight: 400\">Defining Configuration Fields<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">To configure oAuth v2, define the fields described in the following table.<\/span><\/p>\n<table style=\"height: 967px\">\n<tbody>\n<tr>\n<th>\n<strong>FIELD NAME<\/strong>\n<\/th>\n<th>\n<strong>DESCRIPTION<\/strong>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<span style=\"font-weight: 400\">Authorization Type<\/span>\n<\/td>\n<td>\n<span style=\"font-weight: 400\">Set to oAuth v2.<\/span>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<span style=\"font-weight: 400\">Callback Link<\/span>\n<\/td>\n<td>\n<span style=\"font-weight: 400\">The URL used by the web application or web service to redirect the end-user after end-user authorization is complete. This value, <\/span><span style=\"font-weight: 400\">https:\/\/idp.kore.ai\/workflows\/callback\/<\/span><span style=\"font-weight: 400\"> is provided as a read-only value by the XO Platform when you define oAuth v2 settings.<\/span>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<span style=\"font-weight: 400\">Identity Provider Name<\/span>\n<\/td>\n<td>\n<span style=\"font-weight: 400\">The name of the web application or web service, for example, <\/span><em><span style=\"font-weight: 400\">Asana<\/span><\/em><span style=\"font-weight: 400\">. This field is required.<\/span>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<span style=\"font-weight: 400\">Client ID<\/span>\n<\/td>\n<td>\n<span style=\"font-weight: 400\">The ID of the Kore.ai client. The XO Platform accepts a maximum length of 255 characters.<\/span>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<span style=\"font-weight: 400\">Client Secret Key<\/span>\n<\/td>\n<td>\n<span style=\"font-weight: 400\">The value provided as the XO Platform authentication based on the Client ID to the web application. The XO platform  accepts a maximum length of 255 characters.<\/span>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Authorization URL<\/span><\/p>\n<\/td>\n<td>\n<span style=\"font-weight: 400\">This is the URL used to obtain end-user authorization for the XO Platform to access the web application or web service using the access token. The XO Platform accepts a valid URL with a maximum length of 3000 characters. This field is required. You can use dynamic fields, path parameter fields, query fields, and so forth, to define the Authorization URL, for example,<\/span><br \/>\n<span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0\u00a0https:\/\/kore.someCompany.com\/sap\/opu\/odata\/sap\/{{authfield1}}\/?$format=json<\/span><br \/>\n<span style=\"font-weight: 400\">or<\/span><\/p>\n<p><span style=\"font-weight: 400\">https:\/\/{tenant}.service-now.com\/api\/now\/v1\/table\/incident<\/span><br \/>\n<span style=\"font-weight: 400\">For more information, see <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/dialog-task\/using-session-and-context-variables-in-tasks\/\"><span style=\"font-weight: 400\">Using Session and Context Variables in Tasks<\/span><\/a><span style=\"font-weight: 400\">.<\/span>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<span style=\"font-weight: 400\">Access Using a Connector<\/span><\/p>\n<\/td>\n<td>\n<span style=\"font-weight: 400\">Select <\/span><strong>Yes<\/strong><span style=\"font-weight: 400\"> to enable access for Kore.ai Bots using the Kore.ai Connector agent. This option is only visible if a Kore.ai Connector agent is configured and enabled in your enterprise on-premises network. For more information, see <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-admin\/security-control\/security-module-overview\/#Why_Use_the_Koreai_Connector_for_Bots\"><span style=\"font-weight: 400\">Using the Kore.ai Connector<\/span><\/a><span style=\"font-weight: 400\">.<\/span>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<span style=\"font-weight: 400\">Token Request URL<\/span>\n<\/td>\n<td>\n<span style=\"font-weight: 400\">The URL used by the XO Platform to obtain an unauthorized request token. A request token is a value used by the XO Platform to obtain authorization from the end-user to obtain an access token. The XO Platform accepts a valid URL with a maximum length of 3000 characters. After end-user authorization, an access token can be requested by the Kore.ai application. This field is required.<\/span>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<span style=\"font-weight: 400\">Scope<\/span><\/p>\n<\/td>\n<td>\n<span style=\"font-weight: 400\">If the web service requires additional values for authorization, add one or more <\/span><span style=\"font-weight: 400\">Key\/Value<\/span><span style=\"font-weight: 400\"> pairs. For example, some web services support using a <\/span><span style=\"font-weight: 400\">scope<\/span><span style=\"font-weight: 400\"> key using <\/span><span style=\"font-weight: 400\">read-only<\/span><span style=\"font-weight: 400\">, <\/span><span style=\"font-weight: 400\">write<\/span><span style=\"font-weight: 400\">, or <\/span><span style=\"font-weight: 400\">both<\/span><span style=\"font-weight: 400\"> as the value.<\/span>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<span style=\"font-weight: 400\">Refresh Token URL<\/span><\/p>\n<\/td>\n<td>\n<span style=\"font-weight: 400\">Enter a Refresh Token URL, if required, for cases when the authentication token expires and has to be refreshed. The XO Platform accepts a valid URL with a maximum length of 3000 characters.<br \/>\n<\/span>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<span style=\"font-weight: 400\">Description<\/span><\/p>\n<\/td>\n<td>\n<span style=\"font-weight: 400\">Enter a description for your authorization.<\/span>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Defining_Tenancy\"><span style=\"font-weight: 400\">Defining Tenancy<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">If required, in the <\/span><strong>Subdomain<\/strong><span style=\"font-weight: 400\"> section, select <\/span><strong>Yes<\/strong><span style=\"font-weight: 400\"> if the base URL for a web application or user interface that uses a tenant name in the URL. For example, <\/span><span style=\"font-weight: 400\">kore<\/span><span style=\"font-weight: 400\"> is the tenant organization for a web service using tenants at <\/span><span style=\"font-weight: 400\">www.<\/span><strong><em>kore<\/em><\/strong><span style=\"font-weight: 400\">.someCompany.com.<\/span><\/p>\n<p><span style=\"font-weight: 400\">In the following example configuration, the tenancy URL contains the <\/span><span style=\"font-weight: 400\">{tenant}<\/span><span style=\"font-weight: 400\"> organization placeholder.<\/span><span style=\"font-weight: 400\"><br \/><\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155054\/tenancy-2-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-47383\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155054\/tenancy-2-5.png\" alt=\"\" width=\"683\" height=\"181\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155054\/tenancy-2-5.png 770w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155054\/tenancy-2-5-300x79.png 300w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/a><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Adding_Additional_Fields\"><span style=\"font-weight: 400\">Adding Additional Fields<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">Click <\/span><strong>Add<\/strong> <strong>Additional Fields<\/strong><span style=\"font-weight: 400\"> and then enter one or more key\/value pairs that represent additional authorization input fields.<\/span><\/p>\n<p><span style=\"font-weight: 400\">If, for example, the default username and password fields do not meet your needs for authorization input, you can add custom fields as key\/value pairs that are displayed to the end-user by adding <\/span><strong>Additional Fields<\/strong><span style=\"font-weight: 400\">. You can use these fields, for example, if a PIN code is required in the authorization process, in addition to the <\/span><strong>Username<\/strong><span style=\"font-weight: 400\"> and <\/span><strong>Password<\/strong><span style=\"font-weight: 400\"> fields.<\/span><\/p>\n<p><strong>Additional Fields<\/strong><span style=\"font-weight: 400\"> are added as shown in the following illustration.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155117\/additional-fields-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47395\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155117\/additional-fields-2.png\" alt=\"\" width=\"640\" height=\"227\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155117\/additional-fields-2.png 785w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155117\/additional-fields-2-300x106.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-weight: 400\">Specify the following fields:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>Field Key<\/strong><span style=\"font-weight: 400\"> \u2013 The name of the custom field to specify for authorization.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Value<\/strong><span style=\"font-weight: 400\"> \u2013 The value of the custom field to specify for the authorization.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Click <\/span><strong>Done <\/strong><span style=\"font-weight: 400\">to save the <\/span><strong>Additional Field<\/strong><span style=\"font-weight: 400\">.<\/span><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Adding_Authorization_Fields\"><span style=\"font-weight: 400\">Adding Authorization Fields<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">By default, no authorization fields are configured as part of the header of the request message. If your request requires authorization fields or the expected authorization is not part of the header, for example, social security number or PIN, click <\/span><strong>Add<\/strong> <strong>Authorization Fields<\/strong><span style=\"font-weight: 400\"> and then define the fields as shown in the following illustration.<\/span><span style=\"font-weight: 400\"><br \/><\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155121\/auth-fields-1-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47398\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155121\/auth-fields-1-3.png\" alt=\"\" width=\"640\" height=\"297\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155121\/auth-fields-1-3.png 766w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155121\/auth-fields-1-3-300x139.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In the <\/span><strong>Field Type<\/strong><span style=\"font-weight: 400\"> field, you can select one of the following depending on where in the request message and the type of authorization fields that are required.<\/span><\/li>\n<ol>\n<li style=\"font-weight: 400\"><strong>Header<\/strong><span style=\"font-weight: 400\"> \u2013 The assistant expects the authorization fields as part of the header of the request.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Payload<\/strong><span style=\"font-weight: 400\"> \u2013 The assistant expects the authorization fields as part of the content of the body of the request.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Query String<\/strong><span style=\"font-weight: 400\"> \u2013 The assistant expects the authorization fields as a query in the body of the request.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Path Param<\/strong><span style=\"font-weight: 400\"> \u2013 The assistant expects the authorization fields as part of the URL path for the request.<\/span><\/li>\n<\/ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In the <\/span><strong>Field Key<\/strong><span style=\"font-weight: 400\"> field, enter the name of the field for the selected <\/span><strong>Field Type<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In the <\/span><strong>Field Value<\/strong><span style=\"font-weight: 400\"> field, enter the value for the <\/span><strong>Field Key<\/strong><span style=\"font-weight: 400\"> specified.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><strong>Done<\/strong><span style=\"font-weight: 400\">. The new authorization field is added in the <\/span><strong>Authorization Fields<\/strong><span style=\"font-weight: 400\"> section.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400\"><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/span><\/p>\n<h1><span class=\"ez-toc-section\" id=\"Testing_the_Authorization\"><span style=\"font-weight: 400\">Testing the Authorization<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">After you save the authentication, you can test your authorization definition on the <\/span><strong>Authentication<\/strong><span style=\"font-weight: 400\"> page when you click <\/span><strong>Test <\/strong><span style=\"font-weight: 400\">before continuing to develop the remaining steps of your task. When you click <\/span><strong>Test<\/strong><span style=\"font-weight: 400\">, the test is executed using the authentication token URLs and the <\/span><strong>Client ID<\/strong><span style=\"font-weight: 400\"> and <\/span><strong>Client Secret Key<\/strong><span style=\"font-weight: 400\">. If tenancy was defined, the <\/span><strong>Test Authorization<\/strong><span style=\"font-weight: 400\"> dialog is displayed.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155059\/test-auth-4-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47386\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155059\/test-auth-4-1-1024x434.png\" alt=\"\" width=\"640\" height=\"271\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155059\/test-auth-4-1-1024x434.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155059\/test-auth-4-1-300x127.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155059\/test-auth-4-1.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-weight: 400\">Click <\/span><strong>Test<\/strong><span style=\"font-weight: 400\"> to begin the authorization test.\u00a0<\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155105\/test-failed-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47389\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155105\/test-failed-1.png\" alt=\"\" width=\"595\" height=\"473\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155105\/test-failed-1.png 595w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003155105\/test-failed-1-300x238.png 300w\" sizes=\"auto, (max-width: 595px) 100vw, 595px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\">When the validation of authentication is complete, the <\/span><strong>Test Authorization<\/strong><span style=\"font-weight: 400\"> dialog is closed and the results of the validation, either success or failure, is displayed to the immediate right of the <\/span><strong>Test Authorization<\/strong><span style=\"font-weight: 400\"> button. If the authorization fails, the <\/span><em><span style=\"font-weight: 400\">Auth Test Failed<\/span><\/em><span style=\"font-weight: 400\"> message is displayed along with the <\/span><strong>Headers<\/strong><span style=\"font-weight: 400\"> and <\/span><strong>Response<\/strong><span style=\"font-weight: 400\"> tabs as shown in the following illustration.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>OAuth v2 is the new version of the open protocol to allow secure authorization via a standard method from web, mobile, and desktop applications. To use oAuth v2, you must first register an account with the web application as you will need the sign in credentials for that application to configure the settings for the&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-17948","post","type-post","status-publish","format-standard","hentry","category-authorization"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/17948","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/comments?post=17948"}],"version-history":[{"count":15,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/17948\/revisions"}],"predecessor-version":[{"id":57077,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/17948\/revisions\/57077"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=17948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=17948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=17948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}