How to uniquely identify user logging in via oauth?
问题 I particular - I don't understand how to link user that authenticated using oauth to a particular account in my application? So here's accounts in my applciation: CREATE TABLE accounts ( id BIGINT NOT NULL AUTO_INCREMENT, username VARCHAR(40), email VARCHAR(256), created DATETIME, updated DATETIME, PRIMARY KEY (id), UNIQUE KEY (email), UNIQUE KEY (username) ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci; With openid for example there is a unique user id (uri, xri) which uniquely