jose

package module
v0.0.0-...-31ecfee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 5 Imported by: 0

README

xk6-jose

A k6 extension for Javascript Object Signing and Encryption (JOSE) standards.

Features

  • parse JSON Web Key
  • generate new JSON Web Key
  • adopt existing JSON Web Key
  • sign JSON Web Token
  • verify JSON Web Token signature
  • decode JSON Web Token without signature verification

For complete API documentation click here!

The underlying implementation is https://github.com/square/go-jose

Built for k6 using xk6.

Usage

Import an entire module's contents:

import * as jwt from "k6/x/jose/jwt";

Import a single export from a module:

import { sign } from "k6/x/jose/jwt";

Build

To build a k6 binary with this extension, first ensure you have the prerequisites:

Then:

  1. Install xk6:
$ go install go.k6.io/xk6/cmd/xk6@latest
  1. Build the binary:
$ xk6 build --with github.com/szkiba/xk6-jose@latest

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL