Mastodon Oauth
Build LinkLog Development Image / development-image (push) Successful in 10s

This commit is contained in:
Olaf
2026-08-25 23:31:49 +02:00
parent 102d8e533c
commit 57e9775882
12 changed files with 191 additions and 10 deletions
+16
View File
@@ -135,6 +135,22 @@ CREATE TABLE IF NOT EXISTS password_reset_tokens (
);
CREATE INDEX IF NOT EXISTS idx_password_reset_tokens_user_id
ON password_reset_tokens(user_id);
'''),
(8, '''
CREATE TABLE IF NOT EXISTS mastodon_oauth_states (
id TEXT PRIMARY KEY,
user_id TEXT NOT NULL,
state_hash TEXT NOT NULL UNIQUE,
instance TEXT NOT NULL,
client_id TEXT NOT NULL,
client_secret TEXT NOT NULL,
redirect_uri TEXT NOT NULL,
expires_at TEXT NOT NULL,
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY(user_id) REFERENCES users(id) ON DELETE CASCADE
);
CREATE INDEX IF NOT EXISTS idx_mastodon_oauth_states_state_hash
ON mastodon_oauth_states(state_hash);
'''),
]