~ps-jenkins/account-plugins/latestsnapshot-0.10bzr13.04.30daily13.05.02ubuntu.unity.next-0ubuntu1

« back to all changes in this revision

Viewing changes to src/windows-live.vala

  • Committer: Tarmac
  • Author(s): Alberto Mardegan
  • Date: 2013-03-19 08:26:40 UTC
  • mfrom: (89.2.6 no-hardcoded-data)
  • Revision ID: tarmac-20130319082640-i78kr22tgbn2vl52
Move most of the authentication settings to the .provider files.

Approved by PS Jenkins bot, David King.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    construct
28
28
    {
29
29
        var oauth_params = new HashTable<string, GLib.Value?> (str_hash, null);
30
 
        oauth_params.insert ("Host", "login.live.com");
31
 
        oauth_params.insert ("AuthPath", "/oauth20_authorize.srf");
32
 
        oauth_params.insert ("TokenPath", "/oauth20_token.srf");
33
 
        oauth_params.insert ("RedirectUri", "https://login.live.com/oauth20_desktop.srf");
34
30
        oauth_params.insert ("ClientId", Config.WINDOWS_LIVE_CLIENT_ID);
35
 
        oauth_params.insert ("ResponseType", "code");
36
 
        string[] scopes = {
37
 
            "wl.messenger",
38
 
            "wl.offline_access",
39
 
            "wl.emails"
40
 
        };
41
 
        oauth_params.insert ("Scope", scopes);
42
31
        set_oauth_parameters (oauth_params);
43
32
        set_mechanism(Ap.OAuthMechanism.WEB_SERVER);
44
33
    }