Skip to content
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

feat: Add endpoints for organisation page [DEV-3848] #522

Merged
merged 55 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
0b0b38b
Add base endpoints for Stripe integration
Feb 29, 2024
e50cece
Add swagger docs and make it as separate swagger for admin and api
Mar 1, 2024
77bb822
- Add Stripe webhook handling
Mar 9, 2024
a036a02
Add auth routes to admin
Mar 10, 2024
b44b322
Lint and format
Mar 10, 2024
d987e54
swagger changes
Mar 10, 2024
a4c28dc
Get rid of /admin/checkout and move it to /admin/subscriptions
Mar 18, 2024
39d8a42
Change endpoint in swagger
Mar 19, 2024
46baaa6
Fix swagger generation and add API routes
Mar 20, 2024
769b520
Fix swagger request body for subscription update
Mar 20, 2024
d39e55f
Fix stripeSync function
Mar 20, 2024
4fcd102
Get permissions from the M2M token
Mar 23, 2024
b985ec5
Sync updated and small clean-ups
Mar 24, 2024
64ea85b
Clean-ups
Mar 24, 2024
ab0da5b
Add trial period days to subscription creation
Mar 24, 2024
71f60d3
Get also trilaing subsriptions
Mar 25, 2024
042174b
Get rd of Stripe naming
Mar 25, 2024
b366935
Small cleeanups and refactoring
Mar 26, 2024
85d0aed
Merge remote-tracking branch 'origin/develop' into DEV-3671
Mar 27, 2024
9ef7459
Make swagger changes
Mar 27, 2024
dea3a23
Add encryption/decryption to API key
Apr 1, 2024
0413eb2
Change API logic a bit and introduce API key endpoints
Apr 1, 2024
91957b6
MAkes linter happy
Apr 1, 2024
7cf813f
Merge remote-tracking branch 'origin/develop' into DEV-3793
Apr 8, 2024
3df21b2
Merge remote-tracking branch 'origin/develop' into DEV-3793
Apr 8, 2024
13be89f
Get rid of apiKeyHash
Apr 9, 2024
e0fc23e
Lint
Apr 9, 2024
a2fb347
Push swagger file
Apr 9, 2024
7b232eb
Fix required field in swagger
Apr 9, 2024
2226a48
Fix swagger date-time
Apr 9, 2024
5a4fd53
Fix name field in APIKeyCreateRequestBody
Apr 9, 2024
a4cc615
Merge remote-tracking branch 'origin/develop' into DEV-3793
Apr 11, 2024
a0a953a
Get rid of env variables and make them constants
Apr 11, 2024
1804717
Move to bcrypt and HMAC API key generating
Apr 13, 2024
f5ce736
Merge branch 'develop' into DEV-3793
Apr 13, 2024
18fa100
Add error message for Stripe account creation failure
Apr 13, 2024
0623db8
Rename module to abstract
Apr 14, 2024
f555883
Move routes to api folder
Apr 14, 2024
f41d5e5
Refactor in API guarding
Apr 15, 2024
be14478
Change response text and fix tests
Apr 16, 2024
a612f2d
Add some logs
Apr 16, 2024
29f5b6f
Some refactorings
Apr 16, 2024
5e03a89
Add an ability to update organisation (customer)
Apr 16, 2024
c11d3e3
Fix typo
Apr 16, 2024
2f103ea
Revert "Fix typo"
Apr 16, 2024
d9c0fa6
Get rid of Customer in admin names
Apr 16, 2024
c0f7c86
Remove duplicate await statement
DaevMithran Apr 17, 2024
9bf2ebc
Return back user info strategy switcher
Apr 17, 2024
622ca22
Merge branch 'DEV-3848' of github.com:cheqd/credential-service into D…
Apr 17, 2024
a40283b
Fix the user info strategy picking
Apr 17, 2024
ba87c9c
Review comments
Apr 17, 2024
4d5a414
Merge remote-tracking branch 'origin/develop' into DEV-3848
Apr 17, 2024
d3345d6
update swagger-admin.json
Apr 17, 2024
cd6ec32
npm run format
ankurdotb Apr 17, 2024
a9a2aac
Fix text of error message
ankurdotb Apr 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ By default, `ENABLE_AUTHENTICATION` is set to off/`false`. To enable external Ve
2. `LOGTO_WEBHOOK_SECRET`: Webhook secret to authenticate incoming webhook requests from LogTo.
5. **Miscellaneous**
1. `COOKIE_SECRET`: Secret for cookie encryption.
2. `API_KEY_EXPIRATION` (optional): Expiration time for API keys in days. (Default 30 days)

#### Faucet settings

Expand Down
6 changes: 6 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ ARG LOGTO_WEBHOOK_SECRET
ARG ENABLE_DATADOG=false
ARG LOG_LEVEL=info

# API generation
ARG API_KEY_EXPIRATION=30

# Verida connector: build-time
ARG ENABLE_VERIDA_CONNECTOR=false
ARG POLYGON_RPC_URL=https://rpc.ankr.com/polygon_mumbai
Expand Down Expand Up @@ -118,6 +121,9 @@ ENV LOGTO_WEBHOOK_SECRET ${LOGTO_WEBHOOK_SECRET}
ENV ENABLE_DATADOG ${ENABLE_DATADOG}
ENV LOG_LEVEL ${LOG_LEVEL}

# API generatioin
ENV API_KEY_EXPIRATION ${API_KEY_EXPIRATION}

# Faucet setup
ENV ENABLE_ACCOUNT_TOPUP ${ENABLE_ACCOUNT_TOPUP}
ENV FAUCET_URI ${FAUCET_URI}
Expand Down
205 changes: 186 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading