tester

package
v0.0.0-...-36f99de Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

package tester should be used to test the different providers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAll

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

func CheckAssertion

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

func CheckBasicAuth

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

func CheckFormValue

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

func StaticAssertion

func StaticAssertion(assertionType, assertion string) gopenidclient.Assertion

Types

type ProviderTester

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

func (*ProviderTester) Check

func (pt *ProviderTester) Check(t *testing.T, provider gopenidclient.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