Skip to content

draft: v2 optimise performance + security #466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
05b4c3c
Update project struct
lakhansamani Oct 13, 2024
3f55e5f
fix: modify models
lakhansamani Nov 11, 2024
47eea51
fix: config & deps
lakhansamani Nov 18, 2024
3d66c46
update twilio provider
lakhansamani Nov 18, 2024
86c347c
feat: add common config + jwt provider
lakhansamani Dec 18, 2024
d2a3400
fix: warning
lakhansamani Dec 18, 2024
5ac2ac7
fix: setup dependency injection
lakhansamani Dec 19, 2024
2f31e48
chore: update all services
lakhansamani Jan 6, 2025
ec5aa48
chore: update graphql + http handler
lakhansamani Jan 7, 2025
f19438a
chore: fix remove logrus
lakhansamani Jan 7, 2025
a44eefe
chore: add logs for gql
lakhansamani Jan 7, 2025
fd4e983
chore: update encryption and make clientID & secret required
lakhansamani Feb 4, 2025
1ef6da6
chore: fix db tests
lakhansamani Apr 4, 2025
653e48c
chore: fix couchbase db test
lakhansamani Apr 4, 2025
7c57b92
chore: add test for memory store
lakhansamani Apr 4, 2025
f6d749d
chore: add test for magic link login
lakhansamani Apr 4, 2025
616a321
chore: add test for logout
lakhansamani Apr 7, 2025
eaa42d5
chore: add test for update profile
lakhansamani Apr 7, 2025
bcf2ab1
chore: add test for verify email
lakhansamani Apr 7, 2025
ab18f54
chore: add test for resend verify email
lakhansamani Apr 8, 2025
3a27638
chore: add test for forgot password
lakhansamani Apr 18, 2025
0528ba8
chore: add admin login and update user
lakhansamani Apr 18, 2025
5d69711
chore: add reset password test
lakhansamani Apr 22, 2025
e67ac9d
chore: add test for revoke gql
lakhansamani Apr 23, 2025
1e723ed
chore: fix http handler
lakhansamani Apr 23, 2025
fa1d239
chore add test for verify otp
lakhansamani Apr 26, 2025
1d1af6f
chore: add test for resend otp
lakhansamani Apr 26, 2025
568aa8f
chore: add test for account deactivation
lakhansamani Apr 26, 2025
4c44969
added admin integration tests
lemonnn-8 Apr 26, 2025
526ae5a
chore: add session test
lakhansamani May 10, 2025
7f77ba1
Merge pull request #468 from lemonnn-8/admin-test-cases
lakhansamani May 10, 2025
5b48761
chore: add profile test
lakhansamani May 10, 2025
c1c0ca7
chore: standardize params
lakhansamani May 10, 2025
bc2f06f
chore: add test for validate session
lakhansamani May 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
32 changes: 30 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,36 @@ build-dashboard:
cd dashboard && npm i && npm run build
clean:
rm -rf build
dev:
go run main.go --database-type=sqlite --database-url=test.db --jwt-type=HS256 --jwt-secret=test --admin-secret=admin --client-id=123456 --client-secret=secret --disable-email-verification
# test:
# rm -rf server/test/test.db server/test/test.db-shm server/test/test.db-wal && rm -rf test.db test.db-shm test.db-wal && cd server && go clean --testcache && TEST_DBS="sqlite" go test -p 1 -v ./test
test:
rm -rf server/test/test.db server/test/test.db-shm server/test/test.db-wal && rm -rf test.db test.db-shm test.db-wal && cd server && go clean --testcache && TEST_DBS="sqlite" go test -p 1 -v ./test
docker rm -vf authorizer_postgres
docker rm -vf authorizer_scylla_db
docker rm -vf authorizer_mongodb_db
docker rm -vf authorizer_arangodb
docker rm -vf authorizer_dynamodb
docker rm -vf authorizer_couchbase
docker rm -vf authorizer_redis
docker run -d --name authorizer_redis -p 6380:6379 redis
docker run --name authorizer_postgres -p 5432:5432 -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=postgres -d postgres
# docker run -d --name authorizer_scylla_db -p 9042:9042 scylladb/scylla
# docker run -d --name authorizer_mongodb_db -p 27017:27017 mongo:4.4.15
# docker run -d --name authorizer_arangodb -p 8529:8529 -e ARANGO_NO_AUTH=1 arangodb/arangodb:3.10.3
# docker run -d --name authorizer_dynamodb -p 8000:8000 amazon/dynamodb-local:latest
# docker run -d --name authorizer_couchbase -p 8091-8097:8091-8097 -p 11210:11210 -p 11207:11207 -p 18091-18095:18091-18095 -p 18096:18096 -p 18097:18097 couchbase:latest
# sh scripts/couchbase-test.sh

go test -v ./...

docker rm -vf authorizer_postgres
docker rm -vf authorizer_scylla_db
docker rm -vf authorizer_mongodb_db
docker rm -vf authorizer_arangodb
docker rm -vf authorizer_dynamodb
docker rm -vf authorizer_couchbase
docker rm -vf authorizer_redis
test-mongodb:
docker run -d --name authorizer_mongodb_db -p 27017:27017 mongo:4.4.15
cd server && go clean --testcache && TEST_DBS="mongodb" go test -p 1 -v ./test
Expand Down Expand Up @@ -53,7 +81,7 @@ test-all-db:
docker rm -vf dynamodb-local-test
docker rm -vf couchbase-local-test
generate-graphql:
cd server && go run github.com/99designs/gqlgen generate && go mod tidy
go run github.com/99designs/gqlgen --verbose generate && go mod tidy
generate-db-template:
cp -rf server/db/providers/provider_template server/db/providers/${dbname}
find server/db/providers/${dbname} -type f -exec sed -i -e 's/provider_template/${dbname}/g' {} \;
55 changes: 0 additions & 55 deletions ROADMAP.md

This file was deleted.

49 changes: 0 additions & 49 deletions TODO.md

This file was deleted.

Loading