feat(auth): replace internal auth with JWT token service
- Replace InternalAuthService with TokenService using JWT tokens - Add support for token issuance, refresh, verification and revocation - Implement automatic signing key rotation with Redis storage - Add database migration checks for indexes and foreign key constraints - Update gRPC endpoints to use token-based authentication - Remove deprecated API key based authentication system - Add JSON Web Token support with HMAC-SHA256 signing - Implement refresh token handling with automatic rotation - Add token revocation by JTI and user ID - Update build configuration to include core proto files - Migrate database schema to handle token-based authentication - Add comprehensive token validation and verification logic
This commit is contained in:
@@ -27,8 +27,8 @@ CREATE TABLE IF NOT EXISTS wiki_page_revision (
|
||||
CONSTRAINT uq_wiki_revision_page_version UNIQUE (page_id, version)
|
||||
);
|
||||
|
||||
CREATE INDEX idx_wiki_page_repo_id ON wiki_page(repo_id);
|
||||
CREATE INDEX idx_wiki_page_slug ON wiki_page(slug);
|
||||
CREATE INDEX idx_wiki_page_deleted_at ON wiki_page(deleted_at) WHERE deleted_at IS NULL;
|
||||
CREATE INDEX idx_wiki_revision_page_id ON wiki_page_revision(page_id);
|
||||
CREATE INDEX idx_wiki_revision_version ON wiki_page_revision(version);
|
||||
CREATE INDEX IF NOT EXISTS idx_wiki_page_repo_id ON wiki_page(repo_id);
|
||||
CREATE INDEX IF NOT EXISTS idx_wiki_page_slug ON wiki_page(slug);
|
||||
CREATE INDEX IF NOT EXISTS idx_wiki_page_deleted_at ON wiki_page(deleted_at) WHERE deleted_at IS NULL;
|
||||
CREATE INDEX IF NOT EXISTS idx_wiki_revision_page_id ON wiki_page_revision(page_id);
|
||||
CREATE INDEX IF NOT EXISTS idx_wiki_revision_version ON wiki_page_revision(version);
|
||||
|
||||
Reference in New Issue
Block a user