Documentation
¶
Index ¶
- type MockOIDCClient
- type MockSTSClient
- func (m MockSTSClient) Exchange(_ context.Context, given *oidc.ExchangeRequest, _ ...grpc.CallOption) (*oidc.RawToken, error)
- func (m MockSTSClient) ExchangeRefreshToken(_ context.Context, given *oidc.ExchangeRefreshTokenRequest, ...) (*oidc.TokenPair, error)
- func (m MockSTSClient) ExchangeTokens(_ context.Context, given *oidc.ExchangeRequest, _ ...grpc.CallOption) (*oidc.TokenPair, error)
- type STSOnExchange
- type STSOnExchangeTokens
- type STSOnGetAccessToken
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
OnExchangeTokens []STSOnExchangeTokens
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)
func (MockSTSClient) ExchangeTokens ¶ added in v0.1.25
func (m MockSTSClient) ExchangeTokens(_ context.Context, given *oidc.ExchangeRequest, _ ...grpc.CallOption) (*oidc.TokenPair, error)
type STSOnExchange ¶
type STSOnExchange struct {
Given *oidc.ExchangeRequest
Exchanged *oidc.RawToken
Error error
}
type STSOnExchangeTokens ¶ added in v0.1.25
type STSOnExchangeTokens struct {
Given *oidc.ExchangeRequest
Exchanged *oidc.TokenPair
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.