0
我以前創建了一個腳本,可以在用戶點擊鏈接時自動將用戶登錄到Zoho報告中。實質上,它通過共享用戶ID啓用單點登錄來訪問Zoho Reports。自動登錄到Zoho應用程序
這個腳本已經工作了很長時間,但不再訣竅。
這裏是舊腳本:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script>
$(document).ready(function() {
$.ajax({
type:"GET",
url: "https://accounts.zoho.com/login", // Send the login info to this page
data: { LOGIN_ID: "username", PASSWORD: "password", IS_AJAX: "true", remember :-1, servicename: "ZohoReports"},
dataType: "jsonp",
timeout: 200000,
complete: function() { location.href="https://reports.zoho.com";}
});
});
</script>
</head>
<body>
</body>
</html>
我試過幾個修改劇本,但我沒有任何運氣。 如果有人有一些想法,我很樂意聽到他們。
是否應該有一個空格後參數'記住:'? – gibberish
@gibberish它不會有區別 –
我只是改變了他們的登錄表單。我在手動登錄過程中觀看了http流量,並通過POST傳遞相同的值。當然,我只能通過跨域JSON調用進行GET。也許他們不再接受GET。添加了另一個parm getticket:false。我已經嘗試了包括這一點,但它並沒有辦法。 – Bidwell