{"id":27042,"date":"2021-03-17T05:53:50","date_gmt":"2021-03-17T05:53:50","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=27042"},"modified":"2022-09-28T08:14:14","modified_gmt":"2022-09-28T07:14:14","slug":"alert-task-oauth-v1","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/alert\/alert-task-oauth-v1\/","title":{"rendered":"Alert Task \u2013 OAuth v1"},"content":{"rendered":"<p><span style=\"font-weight: 400\">We have seen how an Alert task can be set up in the Kore.ai XO Platform&nbsp; <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/alert\/notification-tasks\/\"><span style=\"font-weight: 400\">here<\/span><\/a><span style=\"font-weight: 400\">. In this article , we will see how authorization for the alert tasks can be set up using the OAuth v1.<\/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_it_Works\"><span style=\"font-weight: 400\">How it Works&nbsp;<\/span><\/span><\/h1>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The Kore.ai application obtains an unauthorized request token from a web application. The Kore.ai application 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 authorizes the request token, associating it with their account. The web application redirects the user back to the Kore.ai application.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The Kore.ai application exchanges the request token for an access token.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The access token allows the Kore.ai application 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=\"General_Setup\"><span style=\"font-weight: 400\">General Setup<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">OAuth is an open protocol to allow secure authorization in a simple and standard method from web, mobile, and desktop applications. To use OAuth, you must first register an account with the web application you want to authorize, as you will need the log-in credentials for that application in order to configure the settings for the authorization mechanism.<\/span><\/p>\n<p><span style=\"font-weight: 400\">To begin your configuration, follow the steps below:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select the <\/span><strong>VA <\/strong><span style=\"font-weight: 400\">you want to work with.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Go to <\/span><strong>Build &gt; Conversation Skills &gt; Alert Tasks<\/strong><span style=\"font-weight: 400\">.&nbsp;<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select the <\/span><strong>task <\/strong><span style=\"font-weight: 400\">you want to work with.&nbsp;<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click the <\/span><strong>API Request<\/strong><span style=\"font-weight: 400\"> tab within the Alert Task.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Expand the <\/span><strong>Authorization <\/strong><span style=\"font-weight: 400\">section and click <\/span><strong>Create New<\/strong><span style=\"font-weight: 400\"> to configure a new authorization.<br \/><\/span><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075629\/new-auth-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-45859\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075629\/new-auth-3-1024x426.png\" alt=\"\" width=\"592\" height=\"246\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075629\/new-auth-3-1024x426.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075629\/new-auth-3-300x125.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075629\/new-auth-3.png 1145w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/a><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Next, the <\/span><strong>New Authorization Mechanism<\/strong><span style=\"font-weight: 400\"> window opens, as shown in the illustration below.<br \/><\/span><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075625\/config-fields.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45856\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075625\/config-fields.png\" alt=\"\" width=\"404\" height=\"683\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075625\/config-fields.png 524w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075625\/config-fields-178x300.png 178w\" sizes=\"auto, (max-width: 404px) 100vw, 404px\" \/><\/a><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400\">To define Oauth v1 as your authorization method, please select it from the <\/span><strong>Authorization Type<\/strong><span style=\"font-weight: 400\"> field, then configure the following areas:<\/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=\"Form_Fields\"><span style=\"font-weight: 400\">Form Fields<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">To define oAuth v1, define the fields described in the following table.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<th>\n<p><strong>FIELD NAME<\/strong><\/p>\n<\/th>\n<th>\n<p><strong>DESCRIPTION<\/strong><\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Authorization Type<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">Set to oAuth v1.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Callback URL<\/span><\/p>\n<\/td>\n<td>\n<p><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\">,&nbsp; is provided as a read-only value by the Kore.ai application when you define oAuth v1 settings.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Identity Provider Name<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">The name of the web application or web service, for example, <\/span><em><span style=\"font-weight: 400\">Twitter<\/span><\/em><span style=\"font-weight: 400\">. This field is required.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Consumer Key<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">The value provided as the Kore.ai application identification to the web application. This field is required.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Consumer Secret<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">The secret value provided by the Kore.ai application to establish ownership of the <\/span><strong>Consumer Key<\/strong><span style=\"font-weight: 400\">. This field is required.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Request Token Link<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">The URL used by the Kore.ai application to obtain an unauthorized request token. A request token is the value used by the Kore.ai application to obtain authorization from the end-user to obtain an access token. For example, <\/span><span style=\"font-weight: 400\">https:\/\/{tenant}.someCompany.com\/oauth\/request_token<\/span><span style=\"font-weight: 400\">. After end-user authorization, an access token can be requested by the Kore.ai application. This field is required.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Access Token Link<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">The URL used to exchange the end-user authorized request token for an access token. The access token is the value used by the Kore.ai application to gain access to the web application or web service on behalf of the end-user, instead of using the end-users log on credentials. For example, <\/span><span style=\"font-weight: 400\">https:\/\/{tenant}.someCompany.com\/oauth\/access_token<\/span><span style=\"font-weight: 400\">. This field is required.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">User Authorization Link<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">The URL used to obtain end-user authorization for the Kore.ai application to access the web application or web service using the access token. For example, <\/span><span style=\"font-weight: 400\">https:\/\/{tenant}.someCompany.com\/oauth\/authorize<\/span><span style=\"font-weight: 400\">. This field is required.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Refresh Token URL<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">This is a URjL that lets the XO Platform get new access tokens without asking the user to log in again.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Description<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">:Enter a description for your authorization task.&nbsp;<\/span><\/p>\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=\"Tenancy\"><span style=\"font-weight: 400\">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 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 as <\/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><\/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\/20220928075632\/tenancy-2-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45862\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075632\/tenancy-2-1.png\" alt=\"\" width=\"510\" height=\"137\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075632\/tenancy-2-1.png 826w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075632\/tenancy-2-1-300x81.png 300w\" sizes=\"auto, (max-width: 510px) 100vw, 510px\" \/><\/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=\"Additional_Fields\"><span style=\"font-weight: 400\">Additional Fields<\/span><\/span><\/h1>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><strong>+ Add Additional Fields <\/strong><span style=\"font-weight: 400\">to open the <\/span><strong>Additional Fields<\/strong><span style=\"font-weight: 400\"> window, and then enter one or more key\/value pairs that represent additional authorization input fields if required as shown in the following illustration. <\/span><span style=\"font-weight: 400\"><br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45853\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075620\/additional-fields-1.png\" alt=\"\" width=\"556\" height=\"198\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075620\/additional-fields-1.png 812w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075620\/additional-fields-1-300x107.png 300w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><br \/><\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Specify the following fields:<\/span><\/li>\n<ol>\n<li style=\"font-weight: 400\"><strong>Field Key<\/strong><span style=\"font-weight: 400\"> &ndash; The name of the custom field to specify for authorization.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Field Value<\/strong><span style=\"font-weight: 400\"> &ndash; The value of the custom field to specify for the authorization.<\/span><\/li>\n<\/ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><strong>Add<\/strong><span style=\"font-weight: 400\"> to save the <\/span><strong>Additional Field<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">To add more <\/span><strong>Additional Fields<\/strong><span style=\"font-weight: 400\">, click <\/span><strong>Add<\/strong><span style=\"font-weight: 400\"> in the <\/span><strong>Additional Fields<\/strong><span style=\"font-weight: 400\"> section.<\/span><\/li>\n<\/ol>\n<h1><span class=\"ez-toc-section\" id=\"Authorization_Fields\"><span style=\"font-weight: 400\">Authorization Fields<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">By default, authorization fields are configured as part of the header of the task request message. If your task request requires additional authorization fields or the expected authorization is not part of the header, for example, a verification code.<\/span><\/p>\n<p><span style=\"font-weight: 400\">To add authorization fields:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><strong>+ Add Authorization Field<\/strong><span style=\"font-weight: 400\"> and then define the fields as shown in the following illustration.<br \/><\/span> <a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075616\/add-authorization-field-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45850\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075616\/add-authorization-field-1.png\" alt=\"\" width=\"484\" height=\"228\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075616\/add-authorization-field-1.png 814w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075616\/add-authorization-field-1-300x141.png 300w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/a><\/li>\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 task 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\"> &ndash; The VA 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\"> &ndash; The VA 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\"> &ndash; The VA 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\"> &ndash; The VA 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>Add<\/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\">Click <\/span><strong>Save<\/strong> <strong>Auth <\/strong><span style=\"font-weight: 400\">to save the authorization settings and close the <\/span><strong>New Authorization Mechanism<\/strong><span style=\"font-weight: 400\"> dialog.<\/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<h1><span class=\"ez-toc-section\" id=\"Testing\"><span style=\"font-weight: 400\">Testing<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">After you save the authorization, you can test your authorization definition on the <\/span><strong>Authorization<\/strong><span style=\"font-weight: 400\"> page.<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><strong>Test Authorization<\/strong><span style=\"font-weight: 400\"> before continuing to develop the remain steps of your task.<\/span><span style=\"font-weight: 400\"><br \/><\/span><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071828\/new-auth-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-45833\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071828\/new-auth-2-1024x426.png\" alt=\"\" width=\"503\" height=\"209\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071828\/new-auth-2-1024x426.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071828\/new-auth-2-300x125.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071828\/new-auth-2.png 1145w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/a><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">When you click <\/span><strong>Test Authorization<\/strong><span style=\"font-weight: 400\">, the test is executed using the authentication token URLs and the <\/span><strong>Consumer Key<\/strong><span style=\"font-weight: 400\"> and <\/span><strong>Consumer Token<\/strong><span style=\"font-weight: 400\">. If the tenancy was defined, the <\/span><strong>Test Authorization<\/strong><span style=\"font-weight: 400\"> dialog is displayed as shown in the following illustration.<\/span><br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075608\/testauth-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45844\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075608\/testauth-2.png\" alt=\"\" width=\"452\" height=\"225\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075608\/testauth-2.png 594w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075608\/testauth-2-300x149.png 300w\" sizes=\"auto, (max-width: 452px) 100vw, 452px\" \/><\/a><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><strong>Test<\/strong><span style=\"font-weight: 400\"> to begin the authorization test. When the validation of authentication is complete, the <\/span><strong>Test Authorization<\/strong><span style=\"font-weight: 400\"> window 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.&nbsp;<br \/><\/span><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075612\/test-failure-1-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45847\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075612\/test-failure-1-1.png\" alt=\"\" width=\"485\" height=\"343\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075612\/test-failure-1-1.png 578w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928075612\/test-failure-1-1-300x212.png 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/a><\/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","protected":false},"excerpt":{"rendered":"<p>We have seen how an Alert task can be set up in the Kore.ai XO Platform&nbsp; here. In this article , we will see how authorization for the alert tasks can be set up using the OAuth v1. How it Works&nbsp; The Kore.ai application obtains an unauthorized request token from a web application. The Kore.ai&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[],"class_list":["post-27042","post","type-post","status-publish","format-standard","hentry","category-alert"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/27042","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=27042"}],"version-history":[{"count":3,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/27042\/revisions"}],"predecessor-version":[{"id":45865,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/27042\/revisions\/45865"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=27042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=27042"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=27042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}