diff options
author | Zach Copley <zach@status.net> | 2010-10-20 17:21:04 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-10-20 17:21:04 -0700 |
commit | e56385a7bb25336a72c1d37ad43d51ba8e238231 (patch) | |
tree | 0472ae8b4ab8f5343df487bd6e7565db1a95d37f /db | |
parent | 3d6a0f730d153378f47805bc6ea8a8d543eb9ab6 (diff) |
Use a new table (oauth_token_association) to associate authorized
request tokins with OAuth client applications and profiles.
Diffstat (limited to 'db')
-rw-r--r-- | db/statusnet.sql | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/statusnet.sql b/db/statusnet.sql index 3f95948e1..ac48e6253 100644 --- a/db/statusnet.sql +++ b/db/statusnet.sql @@ -237,6 +237,15 @@ create table oauth_application_user ( constraint primary key (profile_id, application_id) ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin; +create table oauth_token_association ( + profile_id integer not null comment 'user of the application' references profile (id), + application_id integer not null comment 'id of the application' references oauth_application (id), + token varchar(255) comment 'request or access token', + created datetime not null comment 'date this record was created', + modified timestamp comment 'date this record was modified', + constraint primary key (profile_id, application_id, token) +) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin; + /* These are used by JanRain OpenID library */ create table oid_associations ( |