~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/identica.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 ("RequestEndpoint",
31
 
                             "https://identi.ca/api/oauth/request_token");
32
 
        oauth_params.insert ("TokenEndpoint",
33
 
                             "https://identi.ca/api/oauth/access_token");
34
 
        oauth_params.insert ("AuthorizationEndpoint",
35
 
                             "https://identi.ca/api/oauth/authorize");
36
30
        oauth_params.insert ("ConsumerKey", Config.IDENTICA_CONSUMER_KEY);
37
31
        oauth_params.insert ("ConsumerSecret",
38
32
                             Config.IDENTICA_CONSUMER_SECRET);
39
 
        oauth_params.insert ("Source", "Ubuntu");
40
 
        oauth_params.insert ("Callback", "http://www.ubuntu.com/");
41
 
        oauth_params.insert ("Mode", "desktop");
42
33
        set_oauth_parameters (oauth_params);
43
34
 
44
35
        set_mechanism (Ap.OAuthMechanism.HMAC_SHA1);