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 ¶
func (m MockOIDCClient) STS() oidc.SecurityTokenServiceClient
type MockSTSClient ¶
type MockSTSClient struct { OnExchange []STSOnExchange OnGetAccessToken []STSOnGetAccessToken }
func (MockSTSClient) Exchange ¶
func (m MockSTSClient) Exchange(_ context.Context, given *oidc.ExchangeRequest, _ ...grpc.CallOption) (*oidc.RawToken, error)
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 }
Click to show internal directories.
Click to hide internal directories.