testutil

package
v0.11.1 Latest Latest
Warning

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

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

Documentation

Overview

Package testutil provides a mock OIDC identity provider (discovery document, JWKS, token, and userinfo endpoints) for tests that exercise this module's OIDC client and validator against a real HTTP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIDP added in v0.11.0

type MockIDP struct {
	Server *httptest.Server
	Key    *rsa.PrivateKey
	Issuer string
}

MockIDP is a mock Identity Provider for testing OIDC flows.

func NewMockIDP added in v0.11.0

func NewMockIDP() (*MockIDP, error)

NewMockIDP creates a new MockIDP.

func (*MockIDP) Close added in v0.11.0

func (i *MockIDP) Close()

Close stops the mock IDP server.

Jump to

Keyboard shortcuts

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