]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add new Foreign_link col to store OAuth access token
authorZach Copley <zach@controlyourself.ca>
Thu, 30 Jul 2009 00:20:13 +0000 (00:20 +0000)
committerZach Copley <zach@controlyourself.ca>
Thu, 30 Jul 2009 00:20:13 +0000 (00:20 +0000)
classes/Foreign_link.php
classes/laconica.ini
db/laconica.sql

index c0b356ecedd10473e13447d7a14157b8388dc63f..a3a159eb54a29d7e85bbb80413f643b78d0eb3d0 100644 (file)
@@ -14,6 +14,7 @@ class Foreign_link extends Memcached_DataObject
     public $foreign_id;                      // bigint(8)  primary_key not_null unsigned
     public $service;                         // int(4)  primary_key not_null
     public $credentials;                     // varchar(255)
+    public $token;                           // varchar(255)
     public $noticesync;                      // tinyint(1)   not_null default_1
     public $friendsync;                      // tinyint(1)   not_null default_2
     public $profilesync;                     // tinyint(1)   not_null default_1
index 766bed75deff2a8af0134b0c6773dac420895844..85d5f528d1d9675a4a0d0db35db643bdf37eef43 100644 (file)
@@ -127,6 +127,7 @@ user_id = 129
 foreign_id = 129
 service = 129
 credentials = 2
+token = 2
 noticesync = 145
 friendsync = 145
 profilesync = 145
index 2c04f680a85d587a032cd06fada5c63c8488eaa5..8b1152cbdce9d1c9c763514ef4bc8ed671c1d029 100644 (file)
@@ -291,7 +291,8 @@ create table foreign_link (
      user_id int comment 'link to user on this system, if exists' references user (id),
      foreign_id bigint unsigned comment 'link to user on foreign service, if exists' references foreign_user(id),
      service int not null comment 'foreign key to service' references foreign_service(id),
-     credentials varchar(255) comment 'authc credentials, typically a password',
+     credentials varchar(255) comment 'auth credentials, typically a password or token secret',
+     token varchar(255) comment 'access token',
      noticesync tinyint not null default 1 comment 'notice synchronization, bit 1 = sync outgoing, bit 2 = sync incoming, bit 3 = filter local replies',
      friendsync tinyint not null default 2 comment 'friend synchronization, bit 1 = sync outgoing, bit 2 = sync incoming',
      profilesync tinyint not null default 1 comment 'profile synchronization, bit 1 = sync outgoing, bit 2 = sync incoming',