testmock

package
v0.0.0-...-1474eae Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: ISC Imports: 12 Imported by: 0

Documentation

Overview

Package testmock provides a simple OIDC server that replies with pre-canned responses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenURL

func OpenURL(url string) error

OpenURL mimics the standard client browser by following the redirects. This is designed to work with testmock.Serve and expects every request to return a redirect except the last request.

func Serve

func Serve() *httptest.Server

Serve creates a simple authentication server that returns pre-canned responses to test the oauth flow

Types

This section is empty.

Jump to

Keyboard shortcuts

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