I have encountered this issue while community to enterprise migration and it was happening since the base table ‘oauth_consumer‘ was not available.
CREATE TABLEoauth_consumer
(entity_id
int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Entity Id',
created_at
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Created At',
updated_at
timestamp NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP COMMENT 'Updated At',
name
varchar(255) NOT NULL COMMENT 'Name of consumer',
key
varchar(32) NOT NULL COMMENT 'Key code',
secret
varchar(32) NOT NULL COMMENT 'Secret code',
callback_url
text COMMENT 'Callback URL',
rejected_callback_url
text NOT NULL COMMENT 'Rejected callback URL',
PRIMARY KEY (entity_id
),
UNIQUE KEYOAUTH_CONSUMER_KEY
(key
),
UNIQUE KEYOAUTH_CONSUMER_SECRET
(secret
),
KEYOAUTH_CONSUMER_CREATED_AT
(created_at
),
KEYOAUTH_CONSUMER_UPDATED_AT
(updated_at
)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='OAuth Consumers';