~ubuntuone-control-tower/ubuntu-sso-client/trunk

« back to all changes in this revision

Viewing changes to ubuntu_sso/constants.py.in

  • Committer: Tarmac
  • Author(s): Rodney Dawes, Natalia Bidart
  • Date: 2014-08-14 14:20:29 UTC
  • mfrom: (1035.3.5 no-more-ping)
  • Revision ID: tarmac-20140814142029-phtfnx288m2ddxes
Remove the ping URL usage.
Update the Terms and Privacy URLs to point to login.ubuntu.com.
Update timestamp checking URL to point to login.ubuntu.com.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
import platform
37
37
import urllib
38
38
 
39
 
from ubuntu_sso import SSO_UONE_BASE_URL
 
39
from ubuntu_sso import SSO_AUTH_BASE_URL
40
40
 
41
41
VERSION = '@VERSION@'
42
42
PROJECT_NAME = '@PROJECT_NAME@'
45
45
 
46
46
# Ubuntu One sso constants
47
47
APP_NAME = u"Ubuntu One"
48
 
TC_URL = u"%s/terms/" % SSO_UONE_BASE_URL
49
 
POLICY_URL = u"%s/privacy/" % SSO_UONE_BASE_URL
50
 
BASE_PING_URL = \
51
 
    u"%s/oauth/sso-finished-so-get-tokens/{email}" % SSO_UONE_BASE_URL
 
48
TC_URL = u"%s/terms/" % SSO_AUTH_BASE_URL
 
49
POLICY_URL = u"%s/privacy/" % SSO_AUTH_BASE_URL
52
50
 
53
51
 
54
52
def platform_data():
59
57
    # urlencode will not encode unicode, only bytes
60
58
    result = urllib.urlencode(result)
61
59
    return result
62
 
 
63
 
# the result of platform_data is given by urlencode, encoded with ascii
64
 
PING_URL = BASE_PING_URL + u"?" + platform_data().decode('ascii')