Documentation ¶
Overview ¶
package goathtesting is used to test the different providers.
Index ¶
- func CheckAll(checks ...func(*http.Request) (bool, error)) func(*http.Request) (bool, error)
- func CheckAssertion(assertionType, assertion string) func(req *http.Request) (bool, error)
- func CheckBasicAuth(username, password string) func(req *http.Request) (bool, error)
- func CheckFormValue(key, value string) func(req *http.Request) (bool, error)
- func NewStaticJWT(assertionType, assertion string) goath.JWT
- type ProviderTester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAssertion ¶ added in v0.2.5
func CheckBasicAuth ¶ added in v0.2.5
func CheckFormValue ¶ added in v0.2.5
func NewStaticJWT ¶ added in v0.2.5
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)
Click to show internal directories.
Click to hide internal directories.