passporttest

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package passporttest gives tests across the repository ES256 keys and tokens without each one re-deriving how platform tokens are signed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKeys

NewKeys returns a fresh signer and a verifier that trusts only its key.

func Token

func Token(t testing.TB, signer passport.Signer, p passport.Principal, ttl time.Duration, audiences ...string) string

Token signs a platform token for the given audiences.

Types

This section is empty.

Jump to

Keyboard shortcuts

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