test

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockOIDCClient

type MockOIDCClient struct {
	OnClose error

	STSClient MockSTSClient
}

func (MockOIDCClient) Close

func (m MockOIDCClient) Close() error

func (MockOIDCClient) STS

type MockSTSClient

type MockSTSClient struct {
	OnExchange       []STSOnExchange
	OnGetAccessToken []STSOnGetAccessToken
}

func (MockSTSClient) Exchange

func (MockSTSClient) ExchangeRefreshToken added in v0.1.11

func (m MockSTSClient) ExchangeRefreshToken(_ context.Context, given *oidc.ExchangeRefreshTokenRequest, _ ...grpc.CallOption) (*oidc.TokenPair, error)

type STSOnExchange

type STSOnExchange struct {
	Given     *oidc.ExchangeRequest
	Exchanged *oidc.RawToken
	Error     error
}

type STSOnGetAccessToken added in v0.1.11

type STSOnGetAccessToken struct {
	Given     *oidc.ExchangeRefreshTokenRequest
	Exchanged *oidc.TokenPair
	Error     error
}

Jump to

Keyboard shortcuts

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