Skip to content

Commit

Permalink
fix(oauth): correctly expire cached token
Browse files Browse the repository at this point in the history
fixes #163
  • Loading branch information
jwulf committed May 22, 2024
1 parent 41fdca0 commit fde509a
Show file tree
Hide file tree
Showing 5 changed files with 608 additions and 478 deletions.
118 changes: 111 additions & 7 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@mokuteki/jwt": "^1.0.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@sitapati/testcontainers": "^2.8.1",
"@types/debug": "^4.1.12",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.11",
"@types/jsonwebtoken": "^9.0.6",
"@types/lodash.mergewith": "^4.6.9",
"@types/node": "^20.9.4",
"@types/node-fetch": "^2.6.11",
Expand All @@ -118,6 +118,7 @@
"grpc-tools": "^1.12.4",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jsonwebtoken": "^9.0.2",
"lint-staged": "^15.2.0",
"prettier": "^3.1.1",
"semantic-release": "^22.0.12",
Expand Down
5 changes: 3 additions & 2 deletions src/__tests__/admin/admin.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ test('createClient', async () => {
const c = new AdminApiClient()
const clusters = await c.getClusters()
const clusterUuid = clusters[0].uuid
c.getClient(clusterUuid, 'testors')
const clientName = 'test_generated-delete-me'
c.getClient(clusterUuid, clientName)
.then((res) => c.deleteClient(clusterUuid, res.ZEEBE_CLIENT_ID))
.catch((e) => e)

const res = await c.createClient({
clusterUuid,
clientName: 'testors',
clientName,
permissions: ['Zeebe'],
})
const client = await c.getClient(clusterUuid, res.clientId)
Expand Down
Loading

0 comments on commit fde509a

Please sign in to comment.