diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-05-05 13:42:44 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-05-05 13:42:44 +0100 |
commit | 9c272da05fcf51534aaa877647bc3b82bf841cf3 (patch) | |
tree | b4ad76ff6acd5d5e38907208065689fb37c42e4c /synapse/storage/schema/delta/32 | |
parent | Merge pull request #762 from matrix-org/erikj/report_event (diff) | |
download | synapse-9c272da05fcf51534aaa877647bc3b82bf841cf3.tar.xz |
Add an openidish mechanism for proving to third parties that you own a given user_id
Diffstat (limited to 'synapse/storage/schema/delta/32')
-rw-r--r-- | synapse/storage/schema/delta/32/openid.sql | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/synapse/storage/schema/delta/32/openid.sql b/synapse/storage/schema/delta/32/openid.sql new file mode 100644 index 0000000000..36f37b11c8 --- /dev/null +++ b/synapse/storage/schema/delta/32/openid.sql @@ -0,0 +1,9 @@ + +CREATE TABLE open_id_tokens ( + token TEXT NOT NULL PRIMARY KEY, + ts_valid_until_ms bigint NOT NULL, + user_id TEXT NOT NULL, + UNIQUE (token) +); + +CREATE index open_id_tokens_ts_valid_until_ms ON open_id_tokens(ts_valid_until_ms); |