{"id":17945,"date":"2016-12-05T21:42:16","date_gmt":"2016-12-05T21:42:16","guid":{"rendered":"https:\/\/developer.kore.com\/?post_type=docs&#038;p=9108"},"modified":"2023-09-25T08:37:06","modified_gmt":"2023-09-25T07:37:06","slug":"setting-up-authorization-using-basic-auth","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/advanced-topics\/authorization\/setting-up-authorization-using-basic-auth\/","title":{"rendered":"Setting Up Authorization using Basic Auth"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">When basic authorization is used for a task, the XO Platform automatically prompts the user for login credentials to access the web application or web service, as shown in the following illustration.<\/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\/20221003135513\/auth-login.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-47320\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135513\/auth-login.png\" alt=\"\" width=\"566\" height=\"279\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135513\/auth-login.png 1130w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135513\/auth-login-300x148.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135513\/auth-login-1024x504.png 1024w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">After the end-user is authorized, the settings are saved using the following naming syntax:<\/span><\/p>\n<p><code><span style=\"font-weight: 400;\">{{ First Name }} {{ Last Name }} {{ Bot Name }} {{ Account # }} {{ Sequence # }}<\/span><\/code><\/p>\n<p><span style=\"font-weight: 400;\">For example, <\/span><span style=\"font-weight: 400;\">John Smith\u2019s Twitter Account #1<\/span><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The XO Platform can access the web application or web service for all future task requests using this account. In addition, the end-user can reuse the account for other tasks for the same Virtual Assistant.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You need to have an account with the external application which you want to authorize the XO Platform for.<\/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=\"Configuring_Basic_Authorization\"><span style=\"font-weight: 400;\">Configuring Basic Authorization<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400;\">To define Basic Authorization for your assistant, follow these steps:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Open the VA for which you want to configure the Basic 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 Profile<\/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 \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135504\/add-authorization-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47314\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135504\/add-authorization-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\/20221003135504\/add-authorization-2-1024x456.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135504\/add-authorization-2-300x134.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135504\/add-authorization-2.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><strong><br \/>\n<\/strong><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">In the <\/span><strong>Authorization Type<\/strong><span style=\"font-weight: 400;\"> drop-down list, select <\/span><strong>Basic Auth<\/strong><span style=\"font-weight: 400;\">.<\/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 <\/span><strong>Basic Auth<\/strong><span style=\"font-weight: 400;\"> type.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135941\/new-mechanism.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47327\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135941\/new-mechanism-1024x336.png\" alt=\"\" width=\"640\" height=\"210\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135941\/new-mechanism-1024x336.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135941\/new-mechanism-300x98.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135941\/new-mechanism.png 1306w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<li>Enter the <strong>Description<\/strong> for the profile and select the API endpoint <strong>Method<\/strong>. You can select either <strong>GET<\/strong> or <strong>POST<\/strong> method.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230925081808\/basic_auth_create.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-59495\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230925081808\/basic_auth_create.png\" alt=\"\" width=\"600\" height=\"479\" \/><\/a><br \/>\n<strong>Note<\/strong>: By default, the GET method is selected for the existing bots.<\/li>\n<li>Click <strong>Save<\/strong>.<\/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=\"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 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><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\/20221003135449\/tenancy-2-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-47305\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135449\/tenancy-2-3.png\" alt=\"\" width=\"617\" height=\"158\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135449\/tenancy-2-3.png 801w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135449\/tenancy-2-3-300x77.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/a><\/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_Form_Fields\"><span style=\"font-weight: 400;\">Adding Form Fields\u00a0<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400;\">If the default username and password fields do not meet your needs for authorization input, you can add custom fields displayed to the end-user by adding authorization IDP form fields. You can use these form fields. For example, if 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;\"> form fields.<\/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\/20221003135445\/idp-form-fields.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-47302\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135445\/idp-form-fields.png\" alt=\"\" width=\"506\" height=\"631\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135445\/idp-form-fields.png 678w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135445\/idp-form-fields-240x300.png 240w\" sizes=\"auto, (max-width: 506px) 100vw, 506px\" \/><\/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=\"Defining_Configuration_Fields\"><span style=\"font-weight: 400;\">Defining Configuration Fields<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400;\">The following table describes the fields used to define an authorization IDP form field.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<th><strong>FIELD NAME<\/strong><\/th>\n<th><strong>DESCRIPTION<\/strong><\/th>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Field Title<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Specify the name of the field displayed to the end-user in the authorization dialog.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Field Key<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The value that represents the end-user input value to the authorizing service.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Help Hint<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The help text displayed in the field to describe what should be entered into the field.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Field Type<\/span><\/td>\n<td><span style=\"font-weight: 400;\">When <\/span><strong>Advanced Options<\/strong><span style=\"font-weight: 400;\"> is selected, specify the type of field displayed in the end-user interface to collect the user input assigned as the value for the <\/span><strong>Field Key<\/strong><span style=\"font-weight: 400;\">, one of:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><strong>Textbox<\/strong><\/li>\n<li style=\"font-weight: 400;\"><strong>Password<\/strong><\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Mandatory<\/span><\/td>\n<td><span style=\"font-weight: 400;\">When <\/span><strong>Advanced Options<\/strong><span style=\"font-weight: 400;\"> is selected, select if the end-user must define this field to complete the authorization.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Data Type<\/span><\/td>\n<td><span style=\"font-weight: 400;\">When <\/span><strong>Advanced Options<\/strong><span style=\"font-weight: 400;\"> is selected, specify the type of data expected as input from the end-user, for example, <\/span><strong>String<\/strong><span style=\"font-weight: 400;\">.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Visibility<\/span><\/td>\n<td><span style=\"font-weight: 400;\">When <\/span><strong>Advanced Options<\/strong><span style=\"font-weight: 400;\"> is selected, specify if the authorization field should be visible, hidden, or displayed as read-only.<\/span><\/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=\"Adding_Authorization_Fields\"><span style=\"font-weight: 400;\">Adding 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 request message. If your request requires additional 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 required fields.<\/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\/20221003135508\/auth-fields-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-47317\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135508\/auth-fields-3.png\" alt=\"\" width=\"575\" height=\"259\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135508\/auth-fields-3.png 837w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135508\/auth-fields-3-300x135.png 300w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/a><\/span><\/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>\n<ol>\n<li style=\"font-weight: 400;\"><strong>Header<\/strong><span style=\"font-weight: 400;\"> \u2013 The VA looks for the authorization fields in the request header.<\/span><\/li>\n<li style=\"font-weight: 400;\"><strong>Payload<\/strong><span style=\"font-weight: 400;\"> \u2013 The VA looks for the authorization fields in the request body content.<\/span><\/li>\n<li style=\"font-weight: 400;\"><strong>Query String<\/strong><span style=\"font-weight: 400;\"> \u2013 The VA looks for the authorization fields as a query in the request body.<\/span><\/li>\n<li style=\"font-weight: 400;\"><strong>Path Param<\/strong><span style=\"font-weight: 400;\"> \u2013 The VA looks for the authorization fields in the request URL path.<\/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>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.<br \/>\n<\/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_Check_URL\"><span style=\"font-weight: 400;\">Authorization Check URL<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400;\">In the <\/span><strong>Authorization Check URL<\/strong><span style=\"font-weight: 400;\"> field, optionally define a URL that can be used to test the authorization settings from the XO Platform before you deploy the assistant with the authorization mechanism. You can use dynamic fields, path parameter fields, query fields, and so forth, to define the test URL.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For example<\/span><\/p>\n<p><span style=\"font-weight: 400;\">https:\/\/kore.someCompany.com\/sap\/opu\/odata\/sap\/{{authfield1}}\/?$format=json<\/span><\/p>\n<p><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><\/p>\n<p><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><\/p>\n<p><span style=\"font-weight: 400;\">Click <\/span><strong>Save<\/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_the_Authorization\"><span style=\"font-weight: 400;\">Testing the Authorization\u00a0<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400;\">Once you save the authorization settings, you can test your authorization definition when you click <\/span><strong>Test <\/strong><span style=\"font-weight: 400;\">from the Authorization Profile page.<\/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\/20221003135454\/test-auth-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-47308\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135454\/test-auth-2.png\" alt=\"\" width=\"984\" height=\"438\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135454\/test-auth-2.png 1922w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135454\/test-auth-2-300x134.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135454\/test-auth-2-1024x456.png 1024w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-weight: 400;\">To configure testing for Basic Auth, please follow the steps below:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">In the <\/span><strong>Auth Check URL<\/strong><span style=\"font-weight: 400;\"> field, verify or enter the URL to test the authorization configuration.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">If your assistant uses subdomains, the <\/span><strong>Tenancy<\/strong><span style=\"font-weight: 400;\"> field is displayed and you must specify the tenant.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Enter your <\/span><strong>User Name<\/strong><span style=\"font-weight: 400;\"> and <\/span><strong>Password<\/strong><span style=\"font-weight: 400;\"> for the web service.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Select the content type expected for the URL in the <\/span><strong>Content-Type<\/strong><span style=\"font-weight: 400;\"> field.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Select the <strong>Method<\/strong> for testing the URL, You can select either the <strong>GET<\/strong> or <strong>POST<\/strong> m<\/span>ethod <span style=\"font-weight: 400;\">.<\/span><\/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.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135458\/test-auth-options.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-47311\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135458\/test-auth-options.png\" alt=\"\" width=\"596\" height=\"853\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135458\/test-auth-options.png 596w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003135458\/test-auth-options-210x300.png 210w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/a><br \/>\n<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">When the validation of authorization is complete, the <\/span><strong>Test Authorization<\/strong><span style=\"font-weight: 400;\"> dialog closes and you can see the results of the validation, either success or failure.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">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.<\/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\/20221003140704\/failure-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-47333\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003140704\/failure-1.png\" alt=\"\" width=\"578\" height=\"409\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003140704\/failure-1.png 578w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003140704\/failure-1-300x212.png 300w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/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","protected":false},"excerpt":{"rendered":"<p>When basic authorization is used for a task, the XO Platform automatically prompts the user for login credentials to access the web application or web service, as shown in the following illustration. After the end-user is authorized, the settings are saved using the following naming syntax: {{ First Name }} {{ Last Name }} {{&#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-17945","post","type-post","status-publish","format-standard","hentry","category-authorization"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/17945","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=17945"}],"version-history":[{"count":13,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/17945\/revisions"}],"predecessor-version":[{"id":59500,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/17945\/revisions\/59500"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=17945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=17945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=17945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}