jwksutils

package
v0.1.65 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package jwksutils contains helper utilities and tests for the jwks module

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestKeySet

func NewTestKeySet(numberOfKeys int) (jwks.KeySet, []*rsa.PrivateKey, error)

NewTestKeySet creates a KeySet with n generated keys with their public keys in the set and returns all rsa.PrivateKey. Each key in the JWKS KeySet will be a RSA public key RSA256. Each will have a kid with `key-id-(N+1)`

This should ONLY be used in tests.

func ServeFakeOIDCEndpoint

func ServeFakeOIDCEndpoint(t *testing.T, keyset jwks.KeySet) (string, func())

ServeFakeOIDCEndpoint is a test helper for serving a OIDC endpoint from a static keyset.

Types

This section is empty.

Jump to

Keyboard shortcuts

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