mock_oidc

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock_oidc is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthenticator

type MockAuthenticator struct {
	// contains filtered or unexported fields
}

MockAuthenticator is a mock of Authenticator interface.

func NewMockAuthenticator

func NewMockAuthenticator(ctrl *gomock.Controller) *MockAuthenticator

NewMockAuthenticator creates a new mock instance.

func (*MockAuthenticator) AuthCodeURL

func (m *MockAuthenticator) AuthCodeURL(w http.ResponseWriter, returnURL string) (string, error)

AuthCodeURL mocks base method.

func (*MockAuthenticator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAuthenticator) LoginURL added in v0.4.2

func (m *MockAuthenticator) LoginURL() string

LoginURL mocks base method.

func (*MockAuthenticator) Verify

Verify mocks base method.

type MockAuthenticatorMockRecorder

type MockAuthenticatorMockRecorder struct {
	// contains filtered or unexported fields
}

MockAuthenticatorMockRecorder is the mock recorder for MockAuthenticator.

func (*MockAuthenticatorMockRecorder) AuthCodeURL

func (mr *MockAuthenticatorMockRecorder) AuthCodeURL(w, returnURL any) *gomock.Call

AuthCodeURL indicates an expected call of AuthCodeURL.

func (*MockAuthenticatorMockRecorder) LoginURL added in v0.4.2

func (mr *MockAuthenticatorMockRecorder) LoginURL() *gomock.Call

LoginURL indicates an expected call of LoginURL.

func (*MockAuthenticatorMockRecorder) Verify

func (mr *MockAuthenticatorMockRecorder) Verify(ctx, w, r, claims any) *gomock.Call

Verify indicates an expected call of Verify.

type Mockconfig

type Mockconfig struct {
	// contains filtered or unexported fields
}

Mockconfig is a mock of config interface.

func NewMockconfig

func NewMockconfig(ctrl *gomock.Controller) *Mockconfig

NewMockconfig creates a new mock instance.

func (*Mockconfig) AuthCodeURL

func (m *Mockconfig) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string

AuthCodeURL mocks base method.

func (*Mockconfig) ClientID

func (m *Mockconfig) ClientID() string

ClientID mocks base method.

func (*Mockconfig) EXPECT

func (m *Mockconfig) EXPECT() *MockconfigMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Mockconfig) Exchange

func (m *Mockconfig) Exchange(ctx context.Context, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error)

Exchange mocks base method.

type MockconfigMockRecorder

type MockconfigMockRecorder struct {
	// contains filtered or unexported fields
}

MockconfigMockRecorder is the mock recorder for Mockconfig.

func (*MockconfigMockRecorder) AuthCodeURL

func (mr *MockconfigMockRecorder) AuthCodeURL(state any, opts ...any) *gomock.Call

AuthCodeURL indicates an expected call of AuthCodeURL.

func (*MockconfigMockRecorder) ClientID

func (mr *MockconfigMockRecorder) ClientID() *gomock.Call

ClientID indicates an expected call of ClientID.

func (*MockconfigMockRecorder) Exchange

func (mr *MockconfigMockRecorder) Exchange(ctx, code any, opts ...any) *gomock.Call

Exchange indicates an expected call of Exchange.

type Mockprovider

type Mockprovider struct {
	// contains filtered or unexported fields
}

Mockprovider is a mock of provider interface.

func NewMockprovider

func NewMockprovider(ctrl *gomock.Controller) *Mockprovider

NewMockprovider creates a new mock instance.

func (*Mockprovider) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*Mockprovider) Endpoint

func (m *Mockprovider) Endpoint() oauth2.Endpoint

Endpoint mocks base method.

func (*Mockprovider) Verifier

func (m *Mockprovider) Verifier(config *oidc.Config) *oidc.IDTokenVerifier

Verifier mocks base method.

type MockproviderMockRecorder

type MockproviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockproviderMockRecorder is the mock recorder for Mockprovider.

func (*MockproviderMockRecorder) Endpoint

func (mr *MockproviderMockRecorder) Endpoint() *gomock.Call

Endpoint indicates an expected call of Endpoint.

func (*MockproviderMockRecorder) Verifier

func (mr *MockproviderMockRecorder) Verifier(config any) *gomock.Call

Verifier indicates an expected call of Verifier.

Jump to

Keyboard shortcuts

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