Help us shape the future of Go! Take the 2026 Go Developer Survey

fake

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 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 FakeProvider

type FakeProvider struct {
	Name string
}

FakeProvider represents a fake identity provider

func NewFakeProvider

func NewFakeProvider() *FakeProvider

NewFakeProvider returns a new fake identity provider

func (*FakeProvider) Authenticate

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

Authenticate implements bearer token validation functionalities

func (*FakeProvider) Login

func (provider *FakeProvider) 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