{"version":"1.0","provider_name":"Open API docs","provider_url":"https:\/\/open.tiki.vn\/docs","author_name":"acfc2tiki","author_url":"https:\/\/open.tiki.vn\/docs\/author\/acfc2tiki\/","title":"OAuth2 - Open API docs","type":"rich","width":600,"height":338,"html":"<blockquote class=\"wp-embedded-content\" data-secret=\"ZrLzDLWdrU\"><a href=\"https:\/\/open.tiki.vn\/docs\/question\/oauth2\/\">OAuth2<\/a><\/blockquote><iframe sandbox=\"allow-scripts\" security=\"restricted\" src=\"https:\/\/open.tiki.vn\/docs\/question\/oauth2\/embed\/#?secret=ZrLzDLWdrU\" width=\"600\" height=\"338\" title=\"&#8220;OAuth2&#8221; &#8212; Open API docs\" data-secret=\"ZrLzDLWdrU\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" class=\"wp-embedded-content\"><\/iframe><script type=\"text\/javascript\">\n\/*! This file is auto-generated *\/\n!function(c,d){\"use strict\";var e=!1,o=!1;if(d.querySelector)if(c.addEventListener)e=!0;if(c.wp=c.wp||{},!c.wp.receiveEmbedMessage)if(c.wp.receiveEmbedMessage=function(e){var t=e.data;if(t)if(t.secret||t.message||t.value)if(!\/[^a-zA-Z0-9]\/.test(t.secret)){for(var r,a,i,s=d.querySelectorAll('iframe[data-secret=\"'+t.secret+'\"]'),n=d.querySelectorAll('blockquote[data-secret=\"'+t.secret+'\"]'),o=0;o<n.length;o++)n[o].style.display=\"none\";for(o=0;o<s.length;o++)if(r=s[o],e.source===r.contentWindow){if(r.removeAttribute(\"style\"),\"height\"===t.message){if(1e3<(i=parseInt(t.value,10)))i=1e3;else if(~~i<200)i=200;r.height=i}if(\"link\"===t.message)if(a=d.createElement(\"a\"),i=d.createElement(\"a\"),a.href=r.getAttribute(\"src\"),i.href=t.value,i.host===a.host)if(d.activeElement===r)c.top.location.href=t.value}}},e)c.addEventListener(\"message\",c.wp.receiveEmbedMessage,!1),d.addEventListener(\"DOMContentLoaded\",t,!1),c.addEventListener(\"load\",t,!1);function t(){if(!o){o=!0;for(var e,t,r,a=-1!==navigator.appVersion.indexOf(\"MSIE 10\"),i=!!navigator.userAgent.match(\/Trident.*rv:11\\.\/),s=d.querySelectorAll(\"iframe.wp-embedded-content\"),n=0;n<s.length;n++){if(!(r=(t=s[n]).getAttribute(\"data-secret\")))r=Math.random().toString(36).substr(2,10),t.src+=\"#?secret=\"+r,t.setAttribute(\"data-secret\",r);if(a||i)(e=t.cloneNode(!0)).removeAttribute(\"security\"),t.parentNode.replaceChild(e,t);t.contentWindow.postMessage({message:\"ready\",secret:r},\"*\")}}}}(window,document);\n<\/script>\n","description":"1) Trong Authorization Request: c\u00f3 2 parameters l\u00e0 redirect_uri, scope &#8211; redirect_uri : B\u1ea5t k\u1ef3 URL n\u00e0o hay ph\u1ea3i cung c\u1ea5p URL tr\u01b0\u1edbc \u0111\u1ec3 Tiki \u0111\u01b0a v\u00e0o whitelist tr\u01b0\u1edbc khi th\u1ef1 hi\u1ec7n request &#8211; scope : c\u1ea7n Tiki cung c\u1ea5p value v\u1edbi Authorization request (\u0111\u1ea3 h\u1ecfi nh\u01b0ng tiki ch\u1ee5p picture chung chung) https:\/\/api.tiki.vn\/sc\/oauth2\/auth?client_id=6513380344134399&amp;response_type=code&amp;scope=offline&amp;redirect_uri=https%3A%2F%2Fwebservices.abc.com%2FQBO%2Fconnect%2Findex&amp;state=PXwzOzXkLx2COuljh3thDdVrhTFNmnTs4nvUlI-Cl5c"}