Documentation ¶
Index ¶
- type TestFederationDomainIdentityProvidersListerFinder
- func (t *TestFederationDomainIdentityProvidersListerFinder) FindDefaultIDP() (resolvedprovider.FederationDomainResolvedIdentityProvider, error)
- func (t *TestFederationDomainIdentityProvidersListerFinder) FindUpstreamIDPByDisplayName(upstreamIDPDisplayName string) (resolvedprovider.FederationDomainResolvedIdentityProvider, error)
- func (t *TestFederationDomainIdentityProvidersListerFinder) GetIdentityProviders() []resolvedprovider.FederationDomainResolvedIdentityProvider
- func (t *TestFederationDomainIdentityProvidersListerFinder) HasDefaultIDP() bool
- func (t *TestFederationDomainIdentityProvidersListerFinder) IDPCount() int
- func (t *TestFederationDomainIdentityProvidersListerFinder) SetActiveDirectoryIdentityProviders(providers []*oidctestutil.TestUpstreamLDAPIdentityProvider)
- func (t *TestFederationDomainIdentityProvidersListerFinder) SetGitHubIdentityProviders(providers []*oidctestutil.TestUpstreamGitHubIdentityProvider)
- func (t *TestFederationDomainIdentityProvidersListerFinder) SetLDAPIdentityProviders(providers []*oidctestutil.TestUpstreamLDAPIdentityProvider)
- func (t *TestFederationDomainIdentityProvidersListerFinder) SetOIDCIdentityProviders(providers []*oidctestutil.TestUpstreamOIDCIdentityProvider)
- type UpstreamIDPListerBuilder
- func (b *UpstreamIDPListerBuilder) BuildDynamicUpstreamIDPProvider() dynamicupstreamprovider.DynamicUpstreamIDPProvider
- func (b *UpstreamIDPListerBuilder) BuildFederationDomainIdentityProvidersListerFinder() *TestFederationDomainIdentityProvidersListerFinder
- func (b *UpstreamIDPListerBuilder) CountAllCallsToAnyUpstreamRefresh() int
- func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToActiveDirectoryPerformRefresh(t *testing.T, expectedPerformedByUpstreamName string, ...)
- func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToGithubGetUser(t *testing.T, expectedPerformedByUpstreamName string, ...)
- func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToLDAPPerformRefresh(t *testing.T, expectedPerformedByUpstreamName string, ...)
- func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToOIDCPerformRefresh(t *testing.T, expectedPerformedByUpstreamName string, ...)
- func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToPasswordCredentialsGrantAndValidateTokens(t *testing.T, expectedPerformedByUpstreamName string, ...)
- func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToRevokeToken(t *testing.T, expectedPerformedByUpstreamName string, ...)
- func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToValidateToken(t *testing.T, expectedPerformedByUpstreamName string, ...)
- func (b *UpstreamIDPListerBuilder) RequireExactlyOneGitHubAuthcodeExchange(t *testing.T, expectedPerformedByUpstreamName string, ...)
- func (b *UpstreamIDPListerBuilder) RequireExactlyOneOIDCAuthcodeExchange(t *testing.T, expectedPerformedByUpstreamName string, ...)
- func (b *UpstreamIDPListerBuilder) RequireExactlyZeroAuthcodeExchanges(t *testing.T)
- func (b *UpstreamIDPListerBuilder) RequireExactlyZeroCallsToAnyUpstreamRefresh(t *testing.T)
- func (b *UpstreamIDPListerBuilder) RequireExactlyZeroCallsToPasswordCredentialsGrantAndValidateTokens(t *testing.T)
- func (b *UpstreamIDPListerBuilder) RequireExactlyZeroCallsToRevokeToken(t *testing.T)
- func (b *UpstreamIDPListerBuilder) RequireExactlyZeroCallsToValidateToken(t *testing.T)
- func (b *UpstreamIDPListerBuilder) WithActiveDirectory(...) *UpstreamIDPListerBuilder
- func (b *UpstreamIDPListerBuilder) WithDefaultIDPDisplayName(defaultIDPDisplayName string) *UpstreamIDPListerBuilder
- func (b *UpstreamIDPListerBuilder) WithGitHub(...) *UpstreamIDPListerBuilder
- func (b *UpstreamIDPListerBuilder) WithLDAP(...) *UpstreamIDPListerBuilder
- func (b *UpstreamIDPListerBuilder) WithOIDC(...) *UpstreamIDPListerBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestFederationDomainIdentityProvidersListerFinder ¶
type TestFederationDomainIdentityProvidersListerFinder struct {
// contains filtered or unexported fields
}
TestFederationDomainIdentityProvidersListerFinder implements FederationDomainIdentityProvidersListerFinderI for testing purposes.
func (*TestFederationDomainIdentityProvidersListerFinder) FindDefaultIDP ¶
func (t *TestFederationDomainIdentityProvidersListerFinder) FindDefaultIDP() (resolvedprovider.FederationDomainResolvedIdentityProvider, error)
func (*TestFederationDomainIdentityProvidersListerFinder) FindUpstreamIDPByDisplayName ¶
func (t *TestFederationDomainIdentityProvidersListerFinder) FindUpstreamIDPByDisplayName(upstreamIDPDisplayName string) (resolvedprovider.FederationDomainResolvedIdentityProvider, error)
func (*TestFederationDomainIdentityProvidersListerFinder) GetIdentityProviders ¶
func (t *TestFederationDomainIdentityProvidersListerFinder) GetIdentityProviders() []resolvedprovider.FederationDomainResolvedIdentityProvider
func (*TestFederationDomainIdentityProvidersListerFinder) HasDefaultIDP ¶
func (t *TestFederationDomainIdentityProvidersListerFinder) HasDefaultIDP() bool
func (*TestFederationDomainIdentityProvidersListerFinder) IDPCount ¶
func (t *TestFederationDomainIdentityProvidersListerFinder) IDPCount() int
func (*TestFederationDomainIdentityProvidersListerFinder) SetActiveDirectoryIdentityProviders ¶
func (t *TestFederationDomainIdentityProvidersListerFinder) SetActiveDirectoryIdentityProviders(providers []*oidctestutil.TestUpstreamLDAPIdentityProvider)
func (*TestFederationDomainIdentityProvidersListerFinder) SetGitHubIdentityProviders ¶ added in v0.31.0
func (t *TestFederationDomainIdentityProvidersListerFinder) SetGitHubIdentityProviders(providers []*oidctestutil.TestUpstreamGitHubIdentityProvider)
func (*TestFederationDomainIdentityProvidersListerFinder) SetLDAPIdentityProviders ¶
func (t *TestFederationDomainIdentityProvidersListerFinder) SetLDAPIdentityProviders(providers []*oidctestutil.TestUpstreamLDAPIdentityProvider)
func (*TestFederationDomainIdentityProvidersListerFinder) SetOIDCIdentityProviders ¶
func (t *TestFederationDomainIdentityProvidersListerFinder) SetOIDCIdentityProviders(providers []*oidctestutil.TestUpstreamOIDCIdentityProvider)
type UpstreamIDPListerBuilder ¶
type UpstreamIDPListerBuilder struct {
// contains filtered or unexported fields
}
UpstreamIDPListerBuilder can be used to build either a dynamicupstreamprovider.DynamicUpstreamIDPProvider or a FederationDomainIdentityProvidersListerFinderI for testing.
func NewUpstreamIDPListerBuilder ¶
func NewUpstreamIDPListerBuilder() *UpstreamIDPListerBuilder
func (*UpstreamIDPListerBuilder) BuildDynamicUpstreamIDPProvider ¶
func (b *UpstreamIDPListerBuilder) BuildDynamicUpstreamIDPProvider() dynamicupstreamprovider.DynamicUpstreamIDPProvider
func (*UpstreamIDPListerBuilder) BuildFederationDomainIdentityProvidersListerFinder ¶
func (b *UpstreamIDPListerBuilder) BuildFederationDomainIdentityProvidersListerFinder() *TestFederationDomainIdentityProvidersListerFinder
func (*UpstreamIDPListerBuilder) CountAllCallsToAnyUpstreamRefresh ¶ added in v0.31.0
func (b *UpstreamIDPListerBuilder) CountAllCallsToAnyUpstreamRefresh() int
func (*UpstreamIDPListerBuilder) RequireExactlyOneCallToActiveDirectoryPerformRefresh ¶ added in v0.31.0
func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToActiveDirectoryPerformRefresh( t *testing.T, expectedPerformedByUpstreamName string, expectedArgs *oidctestutil.PerformLDAPRefreshArgs, )
func (*UpstreamIDPListerBuilder) RequireExactlyOneCallToGithubGetUser ¶ added in v0.31.0
func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToGithubGetUser( t *testing.T, expectedPerformedByUpstreamName string, expectedArgs *oidctestutil.GetUserArgs, )
func (*UpstreamIDPListerBuilder) RequireExactlyOneCallToLDAPPerformRefresh ¶ added in v0.31.0
func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToLDAPPerformRefresh( t *testing.T, expectedPerformedByUpstreamName string, expectedArgs *oidctestutil.PerformLDAPRefreshArgs, )
func (*UpstreamIDPListerBuilder) RequireExactlyOneCallToOIDCPerformRefresh ¶ added in v0.31.0
func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToOIDCPerformRefresh( t *testing.T, expectedPerformedByUpstreamName string, expectedArgs *oidctestutil.PerformOIDCRefreshArgs, )
func (*UpstreamIDPListerBuilder) RequireExactlyOneCallToPasswordCredentialsGrantAndValidateTokens ¶
func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToPasswordCredentialsGrantAndValidateTokens( t *testing.T, expectedPerformedByUpstreamName string, expectedArgs *oidctestutil.PasswordCredentialsGrantAndValidateTokensArgs, )
func (*UpstreamIDPListerBuilder) RequireExactlyOneCallToRevokeToken ¶
func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToRevokeToken( t *testing.T, expectedPerformedByUpstreamName string, expectedArgs *oidctestutil.RevokeTokenArgs, )
func (*UpstreamIDPListerBuilder) RequireExactlyOneCallToValidateToken ¶
func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToValidateToken( t *testing.T, expectedPerformedByUpstreamName string, expectedArgs *oidctestutil.ValidateTokenAndMergeWithUserInfoArgs, )
func (*UpstreamIDPListerBuilder) RequireExactlyOneGitHubAuthcodeExchange ¶ added in v0.31.0
func (b *UpstreamIDPListerBuilder) RequireExactlyOneGitHubAuthcodeExchange( t *testing.T, expectedPerformedByUpstreamName string, expectedArgs *oidctestutil.ExchangeAuthcodeArgs, )
func (*UpstreamIDPListerBuilder) RequireExactlyOneOIDCAuthcodeExchange ¶ added in v0.31.0
func (b *UpstreamIDPListerBuilder) RequireExactlyOneOIDCAuthcodeExchange( t *testing.T, expectedPerformedByUpstreamName string, expectedArgs *oidctestutil.ExchangeAuthcodeAndValidateTokenArgs, )
func (*UpstreamIDPListerBuilder) RequireExactlyZeroAuthcodeExchanges ¶ added in v0.31.0
func (b *UpstreamIDPListerBuilder) RequireExactlyZeroAuthcodeExchanges(t *testing.T)
func (*UpstreamIDPListerBuilder) RequireExactlyZeroCallsToAnyUpstreamRefresh ¶ added in v0.31.0
func (b *UpstreamIDPListerBuilder) RequireExactlyZeroCallsToAnyUpstreamRefresh(t *testing.T)
func (*UpstreamIDPListerBuilder) RequireExactlyZeroCallsToPasswordCredentialsGrantAndValidateTokens ¶
func (b *UpstreamIDPListerBuilder) RequireExactlyZeroCallsToPasswordCredentialsGrantAndValidateTokens(t *testing.T)
func (*UpstreamIDPListerBuilder) RequireExactlyZeroCallsToRevokeToken ¶
func (b *UpstreamIDPListerBuilder) RequireExactlyZeroCallsToRevokeToken(t *testing.T)
func (*UpstreamIDPListerBuilder) RequireExactlyZeroCallsToValidateToken ¶
func (b *UpstreamIDPListerBuilder) RequireExactlyZeroCallsToValidateToken(t *testing.T)
func (*UpstreamIDPListerBuilder) WithActiveDirectory ¶
func (b *UpstreamIDPListerBuilder) WithActiveDirectory(upstreamActiveDirectoryIdentityProviders ...*oidctestutil.TestUpstreamLDAPIdentityProvider) *UpstreamIDPListerBuilder
func (*UpstreamIDPListerBuilder) WithDefaultIDPDisplayName ¶
func (b *UpstreamIDPListerBuilder) WithDefaultIDPDisplayName(defaultIDPDisplayName string) *UpstreamIDPListerBuilder
func (*UpstreamIDPListerBuilder) WithGitHub ¶ added in v0.31.0
func (b *UpstreamIDPListerBuilder) WithGitHub(upstreamGithubIdentityProviders ...*oidctestutil.TestUpstreamGitHubIdentityProvider) *UpstreamIDPListerBuilder
func (*UpstreamIDPListerBuilder) WithLDAP ¶
func (b *UpstreamIDPListerBuilder) WithLDAP(upstreamLDAPIdentityProviders ...*oidctestutil.TestUpstreamLDAPIdentityProvider) *UpstreamIDPListerBuilder
func (*UpstreamIDPListerBuilder) WithOIDC ¶
func (b *UpstreamIDPListerBuilder) WithOIDC(upstreamOIDCIdentityProviders ...*oidctestutil.TestUpstreamOIDCIdentityProvider) *UpstreamIDPListerBuilder
Click to show internal directories.
Click to hide internal directories.