Skip to content

Commit b659cd5

Browse files
committed
Add 2FA TOTP support
1 parent 2a3995e commit b659cd5

38 files changed

Lines changed: 2392 additions & 4719 deletions

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
misc
2+
.git

.github/workflows/checks.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
3131
with:
3232
go-version: '1.24'
33+
- name: Generate swagger
34+
run: go install github.com/swaggo/swag/cmd/swag@latest && swag init
3335
- name: Install dependencies
3436
run: go get .
3537
- name: Lint

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ go.work
2121
go.work.sum
2222

2323
misc/test-client-rust/target
24+
/.vscode
25+
/docs

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ FROM public.ecr.aws/docker/library/golang:1.24-bookworm as builder
33
WORKDIR /src
44
COPY . .
55

6+
RUN go install github.com/swaggo/swag/cmd/swag@latest
7+
8+
RUN swag init
69
RUN go build
710

811
FROM public.ecr.aws/docker/library/debian:bookworm-slim

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,17 @@ lint:
2525

2626
run:
2727
docker compose up -d postgres localstack
28+
swag init
2829
go run .
2930

3031
test:
3132
docker compose up -d postgres localstack
33+
swag init
3234
go test -p 1 -v ./...
3335

3436
# Run `go install github.com/air-verse/air@latest` to use this
3537
dev:
3638
air
39+
40+
dev-key-service:
41+
air -- -start-key-service -listen :8081 -prom-listen :9091

0 commit comments

Comments
 (0)