{"id":17947,"date":"2016-12-05T21:45:57","date_gmt":"2016-12-05T21:45:57","guid":{"rendered":"https:\/\/developer.kore.com\/?post_type=docs&#038;p=9113"},"modified":"2022-10-03T15:46:54","modified_gmt":"2022-10-03T14:46:54","slug":"setting-up-authorization-using-oauth-v1","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/advanced-topics\/authorization\/setting-up-authorization-using-oauth-v1\/","title":{"rendered":"Setting Up Authorization using OAuth v1"},"content":{"rendered":"<p><span style=\"font-weight: 400\">OAuth v1 is an open protocol to allow secure authorization in a simple and standardized method from web, mobile, and desktop applications.<\/span><\/p>\n<p><span style=\"font-weight: 400\">To use OAuth v1, you must first register an account with the web application, as you will need the login 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_v1_Works\"><span style=\"font-weight: 400\">How OAuth v1 Works<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">OAuth v1 authorization works as follows:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The XO Platform obtains an unauthorized request token from the web application.<\/span><\/li>\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 authorizes the request token, associating it with their account.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The web application redirects the user back to the XO Platform.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152921\/add-authorization-2-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47360\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152921\/add-authorization-2-1-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\/20221003152921\/add-authorization-2-1-1024x456.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152921\/add-authorization-2-1-300x134.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152921\/add-authorization-2-1.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><br \/><\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The XO Platform 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 XO Platform to access a protected resource at the provider, on behalf of the user.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152935\/oauth1-auth.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47370\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152935\/oauth1-auth-495x1024.png\" alt=\"\" width=\"495\" height=\"1024\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152935\/oauth1-auth-495x1024.png 495w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152935\/oauth1-auth-145x300.png 145w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152935\/oauth1-auth.png 523w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/a><br \/><\/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_v1_Authorization\"><span style=\"font-weight: 400\">Configuring oAuth v1 Authorization<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">To define authorization for your assistant, 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><span style=\"font-weight: 400\">.<\/span><strong>\u00a0<\/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.<\/span><\/li>\n<li style=\"font-weight: 400\">In the <strong>Authorization Type<\/strong> drop-down list, select <strong>oAuth v1<\/strong>.<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The following illustration is an example of the <\/span><strong>oAuth v1 <\/strong><span style=\"font-weight: 400\">authorization type fields that you must define to enable a customized authorization for your assistant.<\/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=\"Defining_Configuration_Fields\"><span style=\"font-weight: 400\">Defining Configuration Fields<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">To define oAuth v1, configure the fields described in the following table.<\/span><\/p>\n<table>\n<tbody>\n<tr style=\"height: 46px\">\n<th style=\"width: 98.2656px;height: 46px\">\n<p><strong>FIELD NAME<\/strong><\/p>\n<\/th>\n<th style=\"width: 557.734px;height: 46px\">\n<p><strong>DESCRIPTION<\/strong><\/p>\n<\/th>\n<\/tr>\n<tr style=\"height: 64px\">\n<td style=\"width: 98.2656px;height: 64px\">\n<p><span style=\"font-weight: 400\">Authorization Type<\/span><\/p>\n<\/td>\n<td style=\"width: 557.734px;height: 64px\">\n<p><span style=\"font-weight: 400\">Set to <\/span><strong>oAuth v1<\/strong><span style=\"font-weight: 400\">.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 100px\">\n<td style=\"width: 98.2656px;height: 100px\">\n<p><span style=\"font-weight: 400\">Callback URL<\/span><\/p>\n<\/td>\n<td style=\"width: 557.734px;height: 100px\">\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\">,\u00a0 is provided as a read-only value by the XO Platform when you define oAuth v1 settings.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 82px\">\n<td style=\"width: 98.2656px;height: 82px\">\n<p><span style=\"font-weight: 400\">Identity Provider Name<\/span><\/p>\n<\/td>\n<td style=\"width: 557.734px;height: 82px\">\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. This is the name under which the authorization profile will be displayed within the XO Platform.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 64px\">\n<td style=\"width: 98.2656px;height: 64px\">\n<p><span style=\"font-weight: 400\">Consumer Key<\/span><\/p>\n<\/td>\n<td style=\"width: 557.734px;height: 64px\">\n<p><span style=\"font-weight: 400\">The value provided as the XO Platform identification to the web application. This field is required.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 64px\">\n<td style=\"width: 98.2656px;height: 64px\">\n<p><span style=\"font-weight: 400\">Consumer Secret<\/span><\/p>\n<\/td>\n<td style=\"width: 557.734px;height: 64px\">\n<p><span style=\"font-weight: 400\">The secret value provided by the XO Platform 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 style=\"height: 137px\">\n<td style=\"width: 98.2656px;height: 137px\">\n<p><span style=\"font-weight: 400\">Request Token Link<\/span><\/p>\n<\/td>\n<td style=\"width: 557.734px;height: 137px\">\n<p><span style=\"font-weight: 400\">The URL used by the XO Platform to obtain an unauthorized request token. The request token is a value used by the XO Platform 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 XO Platform. This field is required.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 137px\">\n<td style=\"width: 98.2656px;height: 137px\">\n<p><span style=\"font-weight: 400\">Access Token Link<\/span><\/p>\n<\/td>\n<td style=\"width: 557.734px;height: 137px\">\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 XO Platform to gain access to the web application or web service on behalf of the end-user, instead of using the end-user 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 style=\"height: 247px\">\n<td style=\"width: 98.2656px;height: 247px\">\n<p><span style=\"font-weight: 400\">User Authorization Link<\/span><\/p>\n<\/td>\n<td style=\"width: 557.734px;height: 247px\">\n<p><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. 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><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0\u00a0https:\/\/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<\/td>\n<\/tr>\n<tr style=\"height: 100px\">\n<td style=\"width: 98.2656px;height: 100px\">\n<p><span style=\"font-weight: 400\">Access Using a Connector<\/span><\/p>\n<\/td>\n<td style=\"width: 557.734px;height: 100px\">\n<p><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><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 64px\">\n<td style=\"width: 98.2656px;height: 64px\">\n<p><span style=\"font-weight: 400\">Refresh Token URL<\/span><\/p>\n<\/td>\n<td style=\"width: 557.734px;height: 64px\">\n<p><span style=\"font-weight: 400\">This is a URL 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 style=\"height: 46px\">\n<td style=\"width: 98.2656px;height: 46px\">\n<p><span style=\"font-weight: 400\">Description<\/span><\/p>\n<\/td>\n<td style=\"width: 557.734px;height: 46px\">\n<p><span style=\"font-weight: 400\">:Enter a description for your authorization task.\u00a0<\/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=\"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 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><\/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\/20221003152939\/tenancy-2-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47373\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152939\/tenancy-2-4.png\" alt=\"\" width=\"640\" height=\"188\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152939\/tenancy-2-4.png 685w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152939\/tenancy-2-4-300x88.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/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_Additional_Fields\"><span style=\"font-weight: 400\">Adding Additional Fields<\/span><\/span><\/h1>\n<p><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\"> dialog 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\/20221003152926\/additional-fields-1-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47363\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152926\/additional-fields-1-1.png\" alt=\"\" width=\"640\" height=\"219\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152926\/additional-fields-1-1.png 698w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152926\/additional-fields-1-1-300x103.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>Field Value<\/strong><span style=\"font-weight: 400\"> \u2013 The value for the custom field to specify for authorization.<\/span><\/li>\n<li style=\"font-weight: 400\"><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><\/li>\n<\/ul>\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><\/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\/20221003152929\/auth-fields-1-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47367\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152929\/auth-fields-1-2.png\" alt=\"\" width=\"640\" height=\"299\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152929\/auth-fields-1-2.png 697w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152929\/auth-fields-1-2-300x140.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<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<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">After you save the authorization, you can test it on the <\/span><strong>Authorization<\/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 assistant. When you click <\/span><strong>Test<\/strong><span style=\"font-weight: 400\">, the test is executed using the <\/span><strong>authorization token URLs<\/strong><span style=\"font-weight: 400\"> 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.\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\/20221003152944\/test-auth-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47376\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152944\/test-auth-4-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\/20221003152944\/test-auth-4-1024x434.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152944\/test-auth-4-300x127.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152944\/test-auth-4.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/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><span style=\"font-weight: 400\">When the validation of authorization 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. 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\/20221003152948\/test-failed.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47379\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152948\/test-failed.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\/20221003152948\/test-failed.png 595w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003152948\/test-failed-300x238.png 300w\" sizes=\"auto, (max-width: 595px) 100vw, 595px\" \/><\/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>OAuth v1 is an open protocol to allow secure authorization in a simple and standardized method from web, mobile, and desktop applications. To use OAuth v1, you must first register an account with the web application, as you will need the login credentials for that application to configure the settings for the authorization mechanism. How&#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-17947","post","type-post","status-publish","format-standard","hentry","category-authorization"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/17947","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=17947"}],"version-history":[{"count":8,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/17947\/revisions"}],"predecessor-version":[{"id":47382,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/17947\/revisions\/47382"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=17947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=17947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=17947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}