OAuth and something

This commit is contained in:
Cutls
2019-06-25 23:16:12 +09:00
parent 0f2c5de161
commit fa2d5f8492
3 changed files with 2 additions and 21 deletions

View File

@@ -304,7 +304,7 @@ function login(url) {
return;
}
if ($('#linux:checked').val() == "on") {
var red = "https://thedesk.top/hello.html"
var red = "urn:ietf:wg:oauth:2.0:oob"
} else {
var red = 'thedesk://manager';
}
@@ -508,7 +508,7 @@ function code(code) {
httpreq.responseType = "json";
httpreq.send(JSON.stringify({
grant_type: "authorization_code",
redirect_uri: "https://thedesk.top/hello.html",
redirect_uri: "urn:ietf:wg:oauth:2.0:oob",
client_id: id,
client_secret: secret,
code: code