mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
added ability to authorize on dropbox thru popup
This commit is contained in:
parent
72b2417195
commit
c1ce0e62e7
3 changed files with 9 additions and 2 deletions
|
|
@ -75,6 +75,8 @@ clicked on menu item.
|
|||
|
||||
* Updated dropbox library to v.0.8.1.
|
||||
|
||||
* Added ability to authorize on dropbox thru popup.
|
||||
|
||||
|
||||
2012.12.12, Version 0.1.8
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<!doctype html>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -57,7 +57,12 @@ var CloudCommander, Util, DOM, Dropbox, cb, Client;
|
|||
key: pConfig.dropbox_encoded_key
|
||||
});
|
||||
|
||||
Client.authDriver(new Dropbox.Drivers.Redirect({rememberUser: true}));
|
||||
//Client.authDriver(new Dropbox.Drivers.Redirect({rememberUser: true}));
|
||||
|
||||
var lURL = CloudCmd.HOST + '/html/auth/dropbox.html';
|
||||
Client.authDriver(new Dropbox.Drivers.Popup({
|
||||
receiverUrl: lURL, noFragment: true
|
||||
}));
|
||||
|
||||
Client.authenticate(function(pError, pClient) {
|
||||
Util.log(pError);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue