testing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthenticationId = "test-authentication-id"
	Issuer           = "test-issuer"
	Audience         = "test-audience"
	SessionId        = "test-session-id"
	RegisteredDomain = "example.com"
)

Variables

This section is empty.

Functions

func MakeCookieExplicit

func MakeCookieExplicit(
	authenticationId string,
	signer motmedelCryptoInterfaces.NamedSigner,
	authenticationMethods []string,
	exp, nbf time.Time,
) string

func MakeDbscProof

func MakeDbscProof(challenge string, extraClaims ...map[string]any) (string, []byte)

MakeDbscProof mints a device bound session proof of the shape a browser sends: the public key carried in the JWT header as "jwk", and the challenge as the only payload claim. It returns the serialised token together with the DER encoded public key the server derives from it.

func MakeStandardCookie

func MakeStandardCookie(authenticationId string, signer motmedelCryptoInterfaces.NamedSigner) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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