{"id":27044,"date":"2021-03-17T06:01:02","date_gmt":"2021-03-17T06:01:02","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=27044"},"modified":"2022-09-28T07:48:22","modified_gmt":"2022-09-28T06:48:22","slug":"alert-task-oauth-v2","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/alert\/alert-task-oauth-v2\/","title":{"rendered":"Alert Task \u2013 OAuth v2"},"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 alert task authorization can be set up using the OAuth v2.<\/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 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 Kore.ai application with an access token.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The Kore.ai application validates the 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 v2 is the new version of the open protocol to allow secure authorization in a simple and 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 log-in credentials for that application 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<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. <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=\"457\" height=\"190\" 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: 457px) 100vw, 457px\" \/><\/a>\n<p><\/span><\/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\/20220928071835\/oauth2-config.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-45836\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071835\/oauth2-config-495x1024.png\" alt=\"\" width=\"430\" height=\"676\" \/><\/a><\/li>\n<\/ol>\n<\/ol>\n<p><span style=\"font-weight: 400\">To configure OAuth1 for your Alert Task, please configure each area presented below.&nbsp;<\/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 configure oAuth v2, 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 v2.<\/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\"> is provided as a read-only value by the Kore.ai application when you define oAuth v2 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\">Asana<\/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\">Client ID<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">The ID of the Kore.ai client.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Client Secret Key<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">The value provided as the Kore.ai application authentication based on the Client ID to the web application.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Authorization URL<\/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. This field is required.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Token Request URL<\/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 a value used by the Kore.ai application to obtain authorization from the end-user to obtain an access token. 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\">Scope<\/span><\/p>\n<\/td>\n<td>\n<p><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 Bot 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><\/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\">Add the refresh token URL that you want to use for this authentication.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Auth Error Status Code<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">When there is an error in authentication, use this field to provide a status code for the particular error.<\/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\">Provide a description for your Alert Task authentication.&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\/20220928071839\/tenancy-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45839\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071839\/tenancy-2.png\" alt=\"\" width=\"503\" height=\"135\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071839\/tenancy-2.png 826w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071839\/tenancy-2-300x81.png 300w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/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.&nbsp;<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071822\/additional-fields.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45830\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071822\/additional-fields.png\" alt=\"\" width=\"466\" height=\"166\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071822\/additional-fields.png 812w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071822\/additional-fields-300x107.png 300w\" sizes=\"auto, (max-width: 466px) 100vw, 466px\" \/><\/a><br \/><\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Specify the following fields:<\/span>\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>Value<\/strong><span style=\"font-weight: 400\"> &ndash; The value of the custom field to specify for the authorization.<\/span><\/li>\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<\/ol>\n<\/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<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=\"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<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.<\/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\/20220928071819\/add-authorization-field.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45827\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071819\/add-authorization-field.png\" alt=\"\" width=\"383\" height=\"180\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071819\/add-authorization-field.png 814w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071819\/add-authorization-field-300x141.png 300w\" sizes=\"auto, (max-width: 383px) 100vw, 383px\" \/><\/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>\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 uery 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>\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<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">To add additional authorization fields, click <\/span><strong>Add<\/strong><span style=\"font-weight: 400\"> 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 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<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=\"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 it using the <\/span><strong>Authorization<\/strong><span style=\"font-weight: 400\"> page.<\/span><\/p>\n<ol>\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 remaining steps of your task.<\/span><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071809\/test-authorization-1-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45821\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071809\/test-authorization-1-2.png\" alt=\"\" width=\"651\" height=\"142\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071809\/test-authorization-1-2.png 977w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071809\/test-authorization-1-2-300x65.png 300w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/a><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">After 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>Client ID<\/strong><span style=\"font-weight: 400\"> and <\/span><strong>Client Secret Key<\/strong><span style=\"font-weight: 400\">. If the tenancy was defined, the <\/span><strong>Test Authorization<\/strong><span style=\"font-weight: 400\"> window 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\/20220928071804\/testauth-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45818\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071804\/testauth-1.png\" alt=\"\" width=\"370\" height=\"184\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071804\/testauth-1.png 594w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071804\/testauth-1-300x149.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><\/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.<\/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\/20220928071814\/test-failure-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45824\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220928071814\/test-failure-2.png\" alt=\"\" width=\"525\" height=\"430\" \/><\/a><\/li>\n<\/ol>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\"><\/p>\n<p><\/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","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 alert task authorization can be set up using the OAuth v2. How it Works&nbsp; The Kore.ai application redirects the user to a login dialog at the web application. The user authenticates&#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-27044","post","type-post","status-publish","format-standard","hentry","category-alert"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/27044","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=27044"}],"version-history":[{"count":3,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/27044\/revisions"}],"predecessor-version":[{"id":45842,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/27044\/revisions\/45842"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=27044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=27044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=27044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}