feat(auth): add optional authentication boundary
- Add account, JWT session, revocation, cookie and bearer handling. - Protect server surfaces while preserving public health, manifest and disabled mode. - Add SQLite migration and focused server regression coverage.
This commit is contained in:
1 parent
d4bb274982
commit
de41571b5c
33 files changed
+1083
-20
No files matched your search
@@ -8,7 +8,12 @@ import {
|
||||
ParseUUIDPipe,
|
||||
Query,
|
||||
} from "@nestjs/common";
|
||||
import { ApiOperation, ApiResponse, ApiTags } from "@nestjs/swagger";
|
||||
import {
|
||||
ApiBearerAuth,
|
||||
ApiOperation,
|
||||
ApiResponse,
|
||||
ApiTags,
|
||||
} from "@nestjs/swagger";
|
||||
import { SessionQueryDto } from "./session-query.dto";
|
||||
import { SessionContextService } from "./session-context.service";
|
||||
import { SessionService } from "./session.service";
|
||||
@@ -19,6 +24,7 @@ function maskToken(token: string, head = 6, tail = 4): string {
|
||||
}
|
||||
|
||||
@ApiTags("sessions")
|
||||
@ApiBearerAuth()
|
||||
@Controller("sessions")
|
||||
export class SessionController {
|
||||
constructor(
|
||||
|
||||
Reference in new issue
Block a user