Skip to content

Commit

Permalink
Added box.com support
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkendk committed Dec 6, 2015
1 parent eceda51 commit 01bb788
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
HC_CLIENT_SECRET='XXXXXXXXXXXXXXXXXXXX'
AMZ_CLIENT_ID='XXXXXXXXXXXXXXXXXXXX'
AMZ_CLIENT_SECRET='XXXXXXXXXXXXXXXXXXXX'
BOX_CLIENT_ID='XXXXXXXXXXXXXXXXXXXX'
BOX_CLIENT_SECRET='XXXXXXXXXXXXXXXXXXXX'

RATE_LIMIT=0

try:
Expand All @@ -49,6 +52,12 @@
except ImportError:
pass

try:
from config import BOX_CLIENT_ID
from config import BOX_CLIENT_SECRET
except ImportError:
pass

try:
from config import APP_DOMAIN
except ImportError:
Expand Down Expand Up @@ -98,6 +107,9 @@
AMZ_AUTH_URL='https://api.amazon.com/auth/o2/token'
AMZ_LOGIN_URL='https://www.amazon.com/ap/oa'

BOX_REDIRECT_URI=OAUTH_CALLBACK_URI
BOX_AUTH_URL='https://api.box.com/oauth2/token'
BOX_LOGIN_URL='https://app.box.com/api/oauth2/authorize'


LOOKUP = {
Expand Down Expand Up @@ -135,6 +147,15 @@
'redirect-uri': AMZ_REDIRECT_URI,
'auth-url': AMZ_AUTH_URL,
'login-url': AMZ_LOGIN_URL
},

'box' : {
'display': 'Box.com',
'client-id': BOX_CLIENT_ID,
'client-secret': BOX_CLIENT_SECRET,
'redirect-uri': BOX_REDIRECT_URI,
'auth-url': BOX_AUTH_URL,
'login-url': BOX_LOGIN_URL
}
}

Expand Down Expand Up @@ -184,6 +205,13 @@
'id': 'amzcd',
'scope': 'clouddrive:read_other clouddrive:write',
'servicelink': 'https://www.amazon.com/clouddrive/home'
},
{
'display': 'Box.com',
'type': 'box',
'id': 'box.com',
'scope': 'root_readwrite',
'servicelink': 'https://www.box.com/pricing/personal/'
}
]

Expand Down

0 comments on commit 01bb788

Please sign in to comment.