diff options
author | 2016-09-14 23:59:44 +0800 | |
---|---|---|
committer | 2016-09-14 23:59:44 +0800 | |
commit | 906a4ce648cbcef097f7da2888f88e082a0b8d5c (patch) | |
tree | c62e060ce1c910612d0cb18bb04d4d184e51a927 /wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/o2c.html | |
parent | f84ace36fe23ab9cdb698dcce9d6dacd9f89e7a8 (diff) |
Add wso2bpel-ext code
Change-Id: I774e0ede1668ee8b4ef03bb48a2fb2971fbd3757
Signed-off-by: huangjian <huang.jian12@zte.com.cn>
Diffstat (limited to 'wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/o2c.html')
-rw-r--r-- | wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/o2c.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/o2c.html b/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/o2c.html new file mode 100644 index 0000000..88e8bf1 --- /dev/null +++ b/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/o2c.html @@ -0,0 +1,20 @@ +<script> +var qp = null; +if(window.location.hash) { + qp = location.hash.substring(1); +} +else { + qp = location.search.substring(1); +} +qp = qp ? JSON.parse('{"' + qp.replace(/&/g, '","').replace(/=/g,'":"') + '"}', + function(key, value) { + return key===""?value:decodeURIComponent(value) } + ):{} + +if (window.opener.swaggerUi.tokenUrl) + window.opener.processOAuthCode(qp); +else + window.opener.onOAuthComplete(qp); + +window.close(); +</script>
\ No newline at end of file |