https://github.com/zitadel/xk6-modules
Provides additional modules for xk6.
https://github.com/zitadel/xk6-modules
Last synced: 4 months ago
JSON representation
Provides additional modules for xk6.
- Host: GitHub
- URL: https://github.com/zitadel/xk6-modules
- Owner: zitadel
- License: apache-2.0
- Created: 2024-04-03T07:57:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-04T12:45:07.000Z (11 months ago)
- Last Synced: 2025-08-21T07:32:38.069Z (10 months ago)
- Language: Go
- Size: 103 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zitadel xk6 modules
Provides helper functions for the [Zitadel load tests](https://github.com/zitadel/zitadel/tree/main/load-test).
## Provided functions
### `signJWTProfileAssertion`
Signs a JWT token request using [OIDC](github.com/zitadel/oidc) and returns it as string.
The function can be used as follows:
```ts
// @ts-ignore Import module
import zitadel from 'k6/x/zitadel';
const assertion = zitadel.signJWTProfileAssertion(
this.keyPayload.userId,
this.keyPayload.keyId,
{
audience: [Config.host],
expiration: this.keyPayload.expiration,
key: privateKey
});
```