mock

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct {
	Name string
}

Mock represents a fake identity provider

func NewMockProvider

func NewMockProvider() *Mock

NewMockProvider returns a new fake identity provider

func (*Mock) Authenticate

func (provider *Mock) Authenticate(bearerToken string) (*models.TokenReviewRequest, error)

Authenticate implements bearer token validation functionalities

func (*Mock) Login

func (provider *Mock) Login(username, password string) (*models.TokenReviewRequest, error)

Login implements login functionality for user foo and password bar

Jump to

Keyboard shortcuts

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