Help us shape the future of Go! Take the 2026 Go Developer Survey

fositejose

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package fositejose converts JSON Web Keys between go-jose v4, which ToolHive uses, and go-jose v3, which fosite v0.49.0 exposes in its interfaces.

go-jose v3 is affected by GHSA-mgcc-cww5-fp2q and has no patched release. The conversions copy already-parsed keys field by field, so key material is never re-parsed by go-jose v3. Remove this package once fosite moves to go-jose v4.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFositeKeySet

func FromFositeKeySet(jwks *josev3.JSONWebKeySet) *jose.JSONWebKeySet

FromFositeKeySet copies a key set read from a fosite client into the go-jose v4 type.

func ToFositeKey

func ToFositeKey(key *jose.JSONWebKey) *josev3.JSONWebKey

ToFositeKey copies key into the go-jose v3 type fosite expects.

func ToFositeKeySet

func ToFositeKeySet(jwks *jose.JSONWebKeySet) *josev3.JSONWebKeySet

ToFositeKeySet copies jwks into the go-jose v3 type fosite expects.

Types

This section is empty.

Jump to

Keyboard shortcuts

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