goathtesting

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

package goathtesting is used to test the different providers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAll added in v0.2.5

func CheckAll(checks ...func(*http.Request) (bool, error)) func(*http.Request) (bool, error)

func CheckAssertion added in v0.2.5

func CheckAssertion(assertionType, assertion string) func(req *http.Request) (bool, error)

func CheckBasicAuth added in v0.2.5

func CheckBasicAuth(username, password string) func(req *http.Request) (bool, error)

func CheckFormValue added in v0.2.5

func CheckFormValue(key, value string) func(req *http.Request) (bool, error)

func NewStaticJWT added in v0.2.5

func NewStaticJWT(assertionType, assertion string) goath.JWT

Types

type ProviderTester

type ProviderTester struct {
	// contains filtered or unexported fields
}

func (*ProviderTester) Check

func (pt *ProviderTester) Check(t *testing.T, provider goath.Provider)

func (*ProviderTester) MatchInitialTokenExchange

func (pt *ProviderTester) MatchInitialTokenExchange(req *http.Request) (bool, error)

Jump to

Keyboard shortcuts

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