testsupport

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostgresDSN

func PostgresDSN(tb testing.TB) string

PostgresDSN returns a connection string to a database of this test's own, on a PostgreSQL instance shared with the rest of the package.

Types

type IdentityProvider

type IdentityProvider struct {
	Subject string
	Email   string
	Claims  []string
	// TenantClaim is what this provider calls them, because not every one
	// calls them the same thing.
	TenantClaim string
	Verify      bool
	// contains filtered or unexported fields
}

IdentityProvider is an OpenID Connect provider small enough to run inside a test: it discovers, authorises, exchanges and signs, so the whole sign-on flow is exercised for real rather than stubbed at the edges.

func NewIdentityProvider

func NewIdentityProvider(tb testing.TB) *IdentityProvider

func (*IdentityProvider) Issuer

func (i *IdentityProvider) Issuer() string

Jump to

Keyboard shortcuts

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