forked from GNUsocial/gnu-social
		
	Add support for an anonymous OAuth consumer. Note: this requires a
small DB tweak. Oauth_application_user needs to have the primary compound key: (profile_id, application_id, token). http://status.net/open-source/issues/2761 This should also make it possible to have multiple access tokens per application. http://status.net/open-source/issues/2788
This commit is contained in:
		| @@ -231,10 +231,10 @@ create table oauth_application_user ( | ||||
|     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), | ||||
|     access_type tinyint default 0 comment 'access type, bit 1 = read, bit 2 = write', | ||||
|     token varchar(255) comment 'request or access token', | ||||
|     token varchar(255) not null 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) | ||||
|     constraint primary key (profile_id, application_id, token) | ||||
| ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin; | ||||
|  | ||||
| /* These are used by JanRain OpenID library */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user