{"id":17946,"date":"2016-12-05T21:43:32","date_gmt":"2016-12-05T21:43:32","guid":{"rendered":"https:\/\/developer.kore.com\/?post_type=docs&#038;p=9111"},"modified":"2022-10-03T16:13:49","modified_gmt":"2022-10-03T15:13:49","slug":"setting-up-authorization-using-oauth-v2-password-grant","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/advanced-topics\/authorization\/setting-up-authorization-using-oauth-v2-password-grant\/","title":{"rendered":"Setting Up Authorization using oAuth v2 password grant"},"content":{"rendered":"<p><strong>Setting Up Authorization using oAuth v2 password grant type<\/strong><\/p>\n<p><span style=\"font-weight: 400\">OAuth v2 is the new version of the open protocol to allow secure authorization in a standardized manner from web, mobile, and desktop applications.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">To use this authorization method, 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<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h1><span class=\"ez-toc-section\" id=\"How_oAuth_v2_Password_Grant_Type_Works\"><span style=\"font-weight: 400\">How oAuth v2 Password Grant Type Works<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">The oAuth v2 Password grant type authorization method allows apps to exchange a user&#8217;s credentials for an access token.\u00a0<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The XO Platform redirects the user to a login dialog at the web application.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The user authenticates.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The web application redirects the user back to the XO Platform with an access token.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The XO Platform validates the access token.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The access token allows the XO Platform to access a protected resource at the provider, on behalf of the user.<\/span><\/li>\n<\/ol>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Configuring_oAuth_v2_Using_Password_Grant_Type\"><span style=\"font-weight: 400\">Configuring oAuth v2 Using Password Grant Type<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">To define Authorization for your assistant, using oAuth v2 password grant, please 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 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 \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160828\/add-authorization-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47406\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160828\/add-authorization-4-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\/20221003160828\/add-authorization-4-1024x456.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160828\/add-authorization-4-300x134.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160828\/add-authorization-4.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><br \/><\/span><\/li>\n<li style=\"font-weight: 400\"><strong>In the <strong>Authorization Type<\/strong><span style=\"font-weight: 400\"> drop-down list, select <\/span><strong>oAuth v2 password grant type<\/strong><span style=\"font-weight: 400\">.<\/span><br \/><\/strong><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Enter a <\/span><strong>Name <\/strong><span style=\"font-weight: 400\">for your authorization, then define the fields to enable it.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160843\/oauth2pg-auth.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47415\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160843\/oauth2pg-auth-496x1024.png\" alt=\"\" width=\"496\" height=\"1024\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160843\/oauth2pg-auth-496x1024.png 496w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160843\/oauth2pg-auth-145x300.png 145w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160843\/oauth2pg-auth.png 523w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/a><br \/><\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400\">The illustration and sections below show an overview of the needed configurations. <\/span><span style=\"font-weight: 400\"><br \/><\/span><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Defining_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\/20221003160847\/tenancy-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47418\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160847\/tenancy-3.png\" alt=\"\" width=\"640\" height=\"172\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160847\/tenancy-3.png 788w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160847\/tenancy-3-300x81.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_Form_Fields\"><span style=\"font-weight: 400\">Adding Form Fields<\/span><\/span><\/h1>\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 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.<\/span><\/p>\n<p><span style=\"font-weight: 400\">To add fields on the authorization form, click <\/span><strong>Add<\/strong> <strong>Form Fields, <\/strong><span style=\"font-weight: 400\">then configure the necessary parameters for each field. The following table describes the fields used to define an authorization form field.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<th style=\"width: 87.7656px\">\n<p><strong>FIELD NAME<\/strong><\/p>\n<\/th>\n<th style=\"width: 575.234px\">\n<p><strong>DESCRIPTION<\/strong><\/p>\n<\/th>\n<\/tr>\n<tr>\n<td style=\"width: 87.7656px\">\n<p><span style=\"font-weight: 400\">Title of Field<\/span><\/p>\n<\/td>\n<td style=\"width: 575.234px\">\n<p><span style=\"font-weight: 400\">Specify the name of the field displayed to the end-user in the authorization dialog.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 87.7656px\">\n<p><span style=\"font-weight: 400\">Field Key<\/span><\/p>\n<\/td>\n<td style=\"width: 575.234px\">\n<p><span style=\"font-weight: 400\">The value represents the end-user input value to the authorizing service.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 87.7656px\">\n<p><span style=\"font-weight: 400\">Help Hint<\/span><\/p>\n<\/td>\n<td style=\"width: 575.234px\">\n<p><span style=\"font-weight: 400\">The help text displayed in the field to describe what should be entered into the field.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 87.7656px\">\n<p><span style=\"font-weight: 400\">Field Type<\/span><\/p>\n<\/td>\n<td style=\"width: 575.234px\">\n<p><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 style=\"width: 87.7656px\">\n<p><span style=\"font-weight: 400\">Mandatory<\/span><\/p>\n<\/td>\n<td style=\"width: 575.234px\">\n<p><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><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 87.7656px\">\n<p><span style=\"font-weight: 400\">Data Type<\/span><\/p>\n<\/td>\n<td style=\"width: 575.234px\">\n<p><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><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 87.7656px\">\n<p><span style=\"font-weight: 400\">Visibility<\/span><\/p>\n<\/td>\n<td style=\"width: 575.234px\">\n<p><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><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160838\/form-fields-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47412\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160838\/form-fields-2-726x1024.png\" alt=\"\" width=\"640\" height=\"903\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160838\/form-fields-2-726x1024.png 726w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160838\/form-fields-2-213x300.png 213w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160838\/form-fields-2.png 766w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/h3>\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 fields as shown in the following illustration.<\/span><span style=\"font-weight: 400\"><br \/><\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160833\/auth-fields-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47409\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160833\/auth-fields-4.png\" alt=\"\" width=\"640\" height=\"301\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160833\/auth-fields-4.png 761w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160833\/auth-fields-4-300x141.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=\"Defining_the_Token_URLs\"><span style=\"font-weight: 400\">Defining the Token URLs<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">In the <\/span><strong>Token URL<\/strong><span style=\"font-weight: 400\"> field, optionally define a URL that can be used to test the authorization settings from XO Platform before you deploy the VA with the authorization mechanism. You can use dynamic fields, path parameter fields, query fields, and so forth, to define the test URL, for example,<\/span><\/p>\n<p><span style=\"font-weight: 400\">http:\/\/{tenant}.someCompany.com\/test\/{{tokenId}}<\/span><\/p>\n<p><span style=\"font-weight: 400\">In the <\/span><strong>Token URL Method<\/strong><span style=\"font-weight: 400\"> field, select the HTTP request method type for the <\/span><strong>Token URL<\/strong><span style=\"font-weight: 400\">. One of <\/span><strong>PUT<\/strong><span style=\"font-weight: 400\">, <\/span><strong>POST<\/strong><span style=\"font-weight: 400\">, <\/span><strong>PATCH<\/strong><span style=\"font-weight: 400\">, <\/span><strong>DELETE<\/strong><span style=\"font-weight: 400\">, and <\/span><strong>GET<\/strong><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">In the <\/span><strong>Token URL Content Type<\/strong><span style=\"font-weight: 400\"> field, select the content type expected from the <\/span><strong>Token URL<\/strong><span style=\"font-weight: 400\">. One of: <\/span><strong>JSON, RSS, XML, URL Encoded JSON, CSV, Text, Twitter Encoded JSON, Multipart\/Form-data,Multipart\/Related<\/strong><span style=\"font-weight: 400\">, or <\/span><strong>Oracle ADF<\/strong><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">In the <\/span><strong>Refresh Token URL<\/strong><span style=\"font-weight: 400\">, enter the refresh token URL if required.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">For situations when there may be authentication errors, enter the <\/span><strong>Auth Error Status Code<\/strong><span style=\"font-weight: 400\">.<\/span><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Access_using_the_Connector\"><span style=\"font-weight: 400\">Access using the Connector<\/span><\/span><\/h1>\n<h3><span class=\"ez-toc-section\" id=\"In_the_Access_Using_a_Connector_section_select_Yes_to_enable_access_for_Koreai_Bots_using_the_Koreai_Connector_agent_If_your_domain_does_not_have_any_active_Koreai_Connectors_defined_a_warning_message_is_displayed_to_contact_the_Bots_Admin_Console_System_Administrator_For_more_information_see_Using_the_Koreai_Connector_in_the_Bots_Admin_Console_documentation\"><span style=\"font-weight: 400\">In the <\/span><strong>Access Using a Connector<\/strong><span style=\"font-weight: 400\"> section, select <\/span><strong>Yes<\/strong><span style=\"font-weight: 400\"> to enable access for Kore.ai Bots using the Kore.ai Connector agent. If your domain does not have any active Kore.ai Connectors defined, a warning message is displayed to contact the Bots Admin Console System Administrator. 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\"> in the Bots Admin Console documentation.<\/span><\/span><\/h3>\n<h3><span class=\"ez-toc-section\" id=\"Click_Save_Auth_to_save_the_authorization_settings_and_close_the_New_Authorization_Mechanism_dialog\"><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><\/span><\/h3>\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\">After you save the authorization, you can test your authorization definition when you click <\/span><strong>Test<\/strong><span style=\"font-weight: 400\"> from the Authorization Profile page.\u00a0<\/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\/20221003160856\/test-button.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47424\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160856\/test-button-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\/20221003160856\/test-button-1024x434.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160856\/test-button-300x127.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160856\/test-button.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-weight: 400\">When you click <\/span><strong>Test<\/strong><span style=\"font-weight: 400\">, the <\/span><strong>Test Authorization<\/strong><span style=\"font-weight: 400\"> dialog is displayed and populated with the URL you specified in the <\/span><strong>Authorization Check URL<\/strong><span style=\"font-weight: 400\"> section. 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\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160851\/test-auth-4-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47421\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160851\/test-auth-4-2.png\" alt=\"\" width=\"556\" height=\"801\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160851\/test-auth-4-2.png 556w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160851\/test-auth-4-2-208x300.png 208w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/a><\/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 to the immediate right of the <\/span><strong>Test <\/strong><span style=\"font-weight: 400\">button. If the authorization fails, the <\/span><em><span style=\"font-weight: 400\">Auth Test Failed<\/span><\/em><span style=\"font-weight: 400\"> message is displayed along with the <\/span><strong>Headers<\/strong><span style=\"font-weight: 400\"> and <\/span><strong>Response<\/strong><span style=\"font-weight: 400\"> tabs as shown in the following illustration.<\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160859\/test-failed-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47427\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160859\/test-failed-2.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\/20221003160859\/test-failed-2.png 595w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20221003160859\/test-failed-2-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>Setting Up Authorization using oAuth v2 password grant type OAuth v2 is the new version of the open protocol to allow secure authorization in a standardized manner from web, mobile, and desktop applications.\u00a0 To use this authorization method, you must first register an account with the web application as you will need the log-in credentials&#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-17946","post","type-post","status-publish","format-standard","hentry","category-authorization"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/17946","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=17946"}],"version-history":[{"count":10,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/17946\/revisions"}],"predecessor-version":[{"id":47434,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/17946\/revisions\/47434"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=17946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=17946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=17946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}