Documentation ¶
Index ¶
- func FilterClientSecretCreateActions(actions []kubetesting.Action) []kubetesting.Action
- func RequireAuthCodeRegexpMatch(t *testing.T, actualContent string, wantRegexp string, ...)
- func VerifyECDSAIDToken(t *testing.T, issuer, clientID string, jwtSigningKey *ecdsa.PrivateKey, ...) *coreosoidc.IDToken
- type ExchangeAuthcodeAndValidateTokenArgs
- type ExchangeAuthcodeArgs
- type ExpectedUpstreamStateParamFormat
- type GetUserArgs
- type PasswordCredentialsGrantAndValidateTokensArgs
- type PerformLDAPRefreshArgs
- type PerformOIDCRefreshArgs
- type RevokeTokenArgs
- type TestUpstreamGitHubIdentityProvider
- func (u *TestUpstreamGitHubIdentityProvider) ExchangeAuthcode(ctx context.Context, authcode string, redirectURI string) (string, error)
- func (u *TestUpstreamGitHubIdentityProvider) ExchangeAuthcodeArgs(call int) *ExchangeAuthcodeArgs
- func (u *TestUpstreamGitHubIdentityProvider) ExchangeAuthcodeCallCount() int
- func (u *TestUpstreamGitHubIdentityProvider) GetAllowedOrganizations() *setutil.CaseInsensitiveSet
- func (u *TestUpstreamGitHubIdentityProvider) GetAuthorizationURL() string
- func (u *TestUpstreamGitHubIdentityProvider) GetClientID() string
- func (u *TestUpstreamGitHubIdentityProvider) GetGroupNameAttribute() idpv1alpha1.GitHubGroupNameAttribute
- func (u *TestUpstreamGitHubIdentityProvider) GetResourceName() string
- func (u *TestUpstreamGitHubIdentityProvider) GetResourceUID() types.UID
- func (u *TestUpstreamGitHubIdentityProvider) GetScopes() []string
- func (u *TestUpstreamGitHubIdentityProvider) GetUser(ctx context.Context, accessToken string, idpDisplayName string) (*upstreamprovider.GitHubUser, error)
- func (u *TestUpstreamGitHubIdentityProvider) GetUserArgs(call int) *GetUserArgs
- func (u *TestUpstreamGitHubIdentityProvider) GetUserCallCount() int
- func (u *TestUpstreamGitHubIdentityProvider) GetUsernameAttribute() idpv1alpha1.GitHubUsernameAttribute
- type TestUpstreamGitHubIdentityProviderBuilder
- func (u *TestUpstreamGitHubIdentityProviderBuilder) Build() *TestUpstreamGitHubIdentityProvider
- func (u *TestUpstreamGitHubIdentityProviderBuilder) WithAccessToken(token string) *TestUpstreamGitHubIdentityProviderBuilder
- func (u *TestUpstreamGitHubIdentityProviderBuilder) WithAllowedOrganizations(value *setutil.CaseInsensitiveSet) *TestUpstreamGitHubIdentityProviderBuilder
- func (u *TestUpstreamGitHubIdentityProviderBuilder) WithAuthcodeExchangeError(err error) *TestUpstreamGitHubIdentityProviderBuilder
- func (u *TestUpstreamGitHubIdentityProviderBuilder) WithAuthorizationURL(value string) *TestUpstreamGitHubIdentityProviderBuilder
- func (u *TestUpstreamGitHubIdentityProviderBuilder) WithClientID(value string) *TestUpstreamGitHubIdentityProviderBuilder
- func (u *TestUpstreamGitHubIdentityProviderBuilder) WithDisplayNameForFederationDomain(value string) *TestUpstreamGitHubIdentityProviderBuilder
- func (u *TestUpstreamGitHubIdentityProviderBuilder) WithGetUserError(err error) *TestUpstreamGitHubIdentityProviderBuilder
- func (u *TestUpstreamGitHubIdentityProviderBuilder) WithGroupNameAttribute(value idpv1alpha1.GitHubGroupNameAttribute) *TestUpstreamGitHubIdentityProviderBuilder
- func (u *TestUpstreamGitHubIdentityProviderBuilder) WithName(value string) *TestUpstreamGitHubIdentityProviderBuilder
- func (u *TestUpstreamGitHubIdentityProviderBuilder) WithResourceUID(value types.UID) *TestUpstreamGitHubIdentityProviderBuilder
- func (u *TestUpstreamGitHubIdentityProviderBuilder) WithScopes(value []string) *TestUpstreamGitHubIdentityProviderBuilder
- func (u *TestUpstreamGitHubIdentityProviderBuilder) WithTransformsForFederationDomain(transforms *idtransform.TransformationPipeline) *TestUpstreamGitHubIdentityProviderBuilder
- func (u *TestUpstreamGitHubIdentityProviderBuilder) WithUser(user *upstreamprovider.GitHubUser) *TestUpstreamGitHubIdentityProviderBuilder
- func (u *TestUpstreamGitHubIdentityProviderBuilder) WithUsernameAttribute(value idpv1alpha1.GitHubUsernameAttribute) *TestUpstreamGitHubIdentityProviderBuilder
- type TestUpstreamLDAPIdentityProvider
- func (u *TestUpstreamLDAPIdentityProvider) AuthenticateUser(ctx context.Context, username, password string) (*authenticators.Response, bool, error)
- func (u *TestUpstreamLDAPIdentityProvider) GetResourceName() string
- func (u *TestUpstreamLDAPIdentityProvider) GetResourceUID() types.UID
- func (u *TestUpstreamLDAPIdentityProvider) GetURL() *url.URL
- func (u *TestUpstreamLDAPIdentityProvider) PerformRefresh(ctx context.Context, ...) ([]string, error)
- func (u *TestUpstreamLDAPIdentityProvider) PerformRefreshArgs(call int) *PerformLDAPRefreshArgs
- func (u *TestUpstreamLDAPIdentityProvider) PerformRefreshCallCount() int
- type TestUpstreamLDAPIdentityProviderBuilder
- func (t *TestUpstreamLDAPIdentityProviderBuilder) Build() *TestUpstreamLDAPIdentityProvider
- func (t *TestUpstreamLDAPIdentityProviderBuilder) WithAuthenticateFunc(...) *TestUpstreamLDAPIdentityProviderBuilder
- func (t *TestUpstreamLDAPIdentityProviderBuilder) WithDisplayNameForFederationDomain(displayName string) *TestUpstreamLDAPIdentityProviderBuilder
- func (t *TestUpstreamLDAPIdentityProviderBuilder) WithName(name string) *TestUpstreamLDAPIdentityProviderBuilder
- func (t *TestUpstreamLDAPIdentityProviderBuilder) WithPerformRefreshErr(err error) *TestUpstreamLDAPIdentityProviderBuilder
- func (t *TestUpstreamLDAPIdentityProviderBuilder) WithPerformRefreshGroups(groups []string) *TestUpstreamLDAPIdentityProviderBuilder
- func (t *TestUpstreamLDAPIdentityProviderBuilder) WithResourceUID(uid types.UID) *TestUpstreamLDAPIdentityProviderBuilder
- func (t *TestUpstreamLDAPIdentityProviderBuilder) WithTransformsForFederationDomain(transforms *idtransform.TransformationPipeline) *TestUpstreamLDAPIdentityProviderBuilder
- func (t *TestUpstreamLDAPIdentityProviderBuilder) WithURL(url *url.URL) *TestUpstreamLDAPIdentityProviderBuilder
- type TestUpstreamOIDCIdentityProvider
- func (u *TestUpstreamOIDCIdentityProvider) AllowsPasswordGrant() bool
- func (u *TestUpstreamOIDCIdentityProvider) ExchangeAuthcodeAndValidateTokens(ctx context.Context, authcode string, pkceCodeVerifier oidcpkce.Code, ...) (*oidctypes.Token, error)
- func (u *TestUpstreamOIDCIdentityProvider) ExchangeAuthcodeAndValidateTokensArgs(call int) *ExchangeAuthcodeAndValidateTokenArgs
- func (u *TestUpstreamOIDCIdentityProvider) ExchangeAuthcodeAndValidateTokensCallCount() int
- func (u *TestUpstreamOIDCIdentityProvider) GetAdditionalAuthcodeParams() map[string]string
- func (u *TestUpstreamOIDCIdentityProvider) GetAdditionalClaimMappings() map[string]string
- func (u *TestUpstreamOIDCIdentityProvider) GetAuthorizationURL() *url.URL
- func (u *TestUpstreamOIDCIdentityProvider) GetClientID() string
- func (u *TestUpstreamOIDCIdentityProvider) GetGroupsClaim() string
- func (u *TestUpstreamOIDCIdentityProvider) GetResourceName() string
- func (u *TestUpstreamOIDCIdentityProvider) GetResourceUID() types.UID
- func (u *TestUpstreamOIDCIdentityProvider) GetRevocationURL() *url.URL
- func (u *TestUpstreamOIDCIdentityProvider) GetScopes() []string
- func (u *TestUpstreamOIDCIdentityProvider) GetUsernameClaim() string
- func (u *TestUpstreamOIDCIdentityProvider) HasUserInfoURL() bool
- func (u *TestUpstreamOIDCIdentityProvider) PasswordCredentialsGrantAndValidateTokens(ctx context.Context, username, password string) (*oidctypes.Token, error)
- func (u *TestUpstreamOIDCIdentityProvider) PasswordCredentialsGrantAndValidateTokensArgs(call int) *PasswordCredentialsGrantAndValidateTokensArgs
- func (u *TestUpstreamOIDCIdentityProvider) PasswordCredentialsGrantAndValidateTokensCallCount() int
- func (u *TestUpstreamOIDCIdentityProvider) PerformRefresh(ctx context.Context, refreshToken string) (*oauth2.Token, error)
- func (u *TestUpstreamOIDCIdentityProvider) PerformRefreshArgs(call int) *PerformOIDCRefreshArgs
- func (u *TestUpstreamOIDCIdentityProvider) PerformRefreshCallCount() int
- func (u *TestUpstreamOIDCIdentityProvider) RevokeToken(ctx context.Context, token string, ...) error
- func (u *TestUpstreamOIDCIdentityProvider) RevokeTokenArgs(call int) *RevokeTokenArgs
- func (u *TestUpstreamOIDCIdentityProvider) RevokeTokenCallCount() int
- func (u *TestUpstreamOIDCIdentityProvider) ValidateTokenAndMergeWithUserInfo(ctx context.Context, tok *oauth2.Token, expectedIDTokenNonce nonce.Nonce, ...) (*oidctypes.Token, error)
- func (u *TestUpstreamOIDCIdentityProvider) ValidateTokenAndMergeWithUserInfoArgs(call int) *ValidateTokenAndMergeWithUserInfoArgs
- func (u *TestUpstreamOIDCIdentityProvider) ValidateTokenAndMergeWithUserInfoCallCount() int
- type TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) Build() *TestUpstreamOIDCIdentityProvider
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithAccessToken(token string, expiry metav1.Time) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithAdditionalAuthcodeParams(params map[string]string) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithAdditionalClaimMappings(m map[string]string) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithAllowPasswordGrant(value bool) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithAuthorizationURL(value url.URL) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithClientID(value string) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithDisplayNameForFederationDomain(displayName string) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithEmptyAccessToken() *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithEmptyRefreshToken() *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithGroupsClaim(value string) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithIDTokenClaim(name string, value any) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithName(value string) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithPasswordGrantError(err error) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithPerformRefreshError(err error) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithRefreshToken(token string) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithRefreshedTokens(tokens *oauth2.Token) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithResourceUID(value types.UID) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithRevokeTokenError(err error) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithScopes(values []string) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithTransformsForFederationDomain(transforms *idtransform.TransformationPipeline) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithUpstreamAuthcodeExchangeError(err error) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithUserInfoURL() *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithUsernameClaim(value string) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithValidateTokenAndMergeWithUserInfoError(err error) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithValidatedAndMergedWithUserInfoTokens(tokens *oidctypes.Token) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithoutAccessToken() *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithoutGroupsClaim() *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithoutIDTokenClaim(claim string) *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithoutRefreshToken() *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithoutUserInfoURL() *TestUpstreamOIDCIdentityProviderBuilder
- func (u *TestUpstreamOIDCIdentityProviderBuilder) WithoutUsernameClaim() *TestUpstreamOIDCIdentityProviderBuilder
- type UpstreamStateParamBuilder
- func (b *UpstreamStateParamBuilder) Build(t *testing.T, stateEncoder *securecookie.SecureCookie) string
- func (b *UpstreamStateParamBuilder) WithAuthorizeRequestParams(params string) *UpstreamStateParamBuilder
- func (b *UpstreamStateParamBuilder) WithCSRF(csrf string) *UpstreamStateParamBuilder
- func (b *UpstreamStateParamBuilder) WithNonce(nonce string) *UpstreamStateParamBuilder
- func (b *UpstreamStateParamBuilder) WithPKCE(pkce string) *UpstreamStateParamBuilder
- func (b *UpstreamStateParamBuilder) WithStateVersion(version string) *UpstreamStateParamBuilder
- func (b *UpstreamStateParamBuilder) WithUpstreamIDPName(upstreamIDPName string) *UpstreamStateParamBuilder
- func (b *UpstreamStateParamBuilder) WithUpstreamIDPType(upstreamIDPType idpdiscoveryv1alpha1.IDPType) *UpstreamStateParamBuilder
- type ValidateTokenAndMergeWithUserInfoArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterClientSecretCreateActions ¶ added in v0.20.0
func FilterClientSecretCreateActions(actions []kubetesting.Action) []kubetesting.Action
FilterClientSecretCreateActions ignores any reads made to get a storage secret corresponding to an OIDCClient, since these are normal actions when the request is using a dynamic client's client_id, and we don't need to make assertions about these Secrets since they are not related to session storage.
func RequireAuthCodeRegexpMatch ¶ added in v0.10.0
func RequireAuthCodeRegexpMatch( t *testing.T, actualContent string, wantRegexp string, kubeClient *fake.Clientset, secretsClient v1.SecretInterface, oauthStore fositestoragei.AllFositeStorage, wantDownstreamGrantedScopes []string, wantDownstreamIDTokenSubject string, wantDownstreamIDTokenUsername string, wantDownstreamIDTokenGroups []string, wantDownstreamRequestedScopes []string, wantDownstreamPKCEChallenge string, wantDownstreamPKCEChallengeMethod string, wantDownstreamNonce string, wantDownstreamClientID string, wantDownstreamRedirectURI string, wantCustomSessionData *psession.CustomSessionData, wantDownstreamAdditionalClaims map[string]any, )
func VerifyECDSAIDToken ¶
func VerifyECDSAIDToken( t *testing.T, issuer, clientID string, jwtSigningKey *ecdsa.PrivateKey, idToken string, ) *coreosoidc.IDToken
VerifyECDSAIDToken verifies that the provided idToken was issued via the provided jwtSigningKey. It also performs some light validation on the claims, i.e., it makes sure the provided idToken has the provided issuer and clientID.
Further validation can be done via callers via the returned coreosoidc.IDToken.
Types ¶
type ExchangeAuthcodeAndValidateTokenArgs ¶
type ExchangeAuthcodeAndValidateTokenArgs struct { Ctx context.Context Authcode string PKCECodeVerifier oidcpkce.Code ExpectedIDTokenNonce nonce.Nonce RedirectURI string }
ExchangeAuthcodeAndValidateTokenArgs is used to spy on calls to TestUpstreamOIDCIdentityProvider.ExchangeAuthcodeAndValidateTokensFunc().
type ExchangeAuthcodeArgs ¶ added in v0.31.0
ExchangeAuthcodeArgs is used to spy on calls to TestUpstreamGitHubIdentityProvider.ExchangeAuthcodeFunc().
type ExpectedUpstreamStateParamFormat ¶
type ExpectedUpstreamStateParamFormat struct { P string `json:"p"` U string `json:"u"` T string `json:"t"` N string `json:"n"` C string `json:"c"` K string `json:"k"` V string `json:"v"` }
ExpectedUpstreamStateParamFormat is a separate type from the production code to ensure that the state param's contents was serialized in the format that we expect, with the json keys that we expect, etc. This also ensure that the order of the serialized fields is the same, which doesn't really matter except that we can make simpler equality assertions about the redirect URL in tests.
type GetUserArgs ¶ added in v0.31.0
GetUserArgs is used to spy on calls to TestUpstreamGitHubIdentityProvider.GetUserFunc().
type PasswordCredentialsGrantAndValidateTokensArgs ¶ added in v0.11.0
type PasswordCredentialsGrantAndValidateTokensArgs struct { Ctx context.Context Username string Password string }
PasswordCredentialsGrantAndValidateTokensArgs is used to spy on calls to TestUpstreamOIDCIdentityProvider.PasswordCredentialsGrantAndValidateTokensFunc().
type PerformLDAPRefreshArgs ¶ added in v0.31.0
type PerformLDAPRefreshArgs struct { Ctx context.Context StoredRefreshAttributes upstreamprovider.LDAPRefreshAttributes IDPDisplayName string }
type PerformOIDCRefreshArgs ¶ added in v0.31.0
PerformOIDCRefreshArgs is used to spy on calls to TestUpstreamOIDCIdentityProvider.PerformRefreshFunc().
type RevokeTokenArgs ¶ added in v0.13.0
type RevokeTokenArgs struct { Ctx context.Context Token string TokenType upstreamprovider.RevocableTokenType }
RevokeTokenArgs is used to spy on calls to TestUpstreamOIDCIdentityProvider.RevokeTokenArgsFunc().
type TestUpstreamGitHubIdentityProvider ¶ added in v0.31.0
type TestUpstreamGitHubIdentityProvider struct { Name string ClientID string ResourceUID types.UID Scopes []string DisplayNameForFederationDomain string TransformsForFederationDomain *idtransform.TransformationPipeline UsernameAttribute idpv1alpha1.GitHubUsernameAttribute GroupNameAttribute idpv1alpha1.GitHubGroupNameAttribute AllowedOrganizations *setutil.CaseInsensitiveSet AuthorizationURL string GetUserFunc func(ctx context.Context, accessToken string) (*upstreamprovider.GitHubUser, error) ExchangeAuthcodeFunc func(ctx context.Context, authcode string) (string, error) // contains filtered or unexported fields }
func (*TestUpstreamGitHubIdentityProvider) ExchangeAuthcode ¶ added in v0.31.0
func (*TestUpstreamGitHubIdentityProvider) ExchangeAuthcodeArgs ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProvider) ExchangeAuthcodeArgs(call int) *ExchangeAuthcodeArgs
func (*TestUpstreamGitHubIdentityProvider) ExchangeAuthcodeCallCount ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProvider) ExchangeAuthcodeCallCount() int
func (*TestUpstreamGitHubIdentityProvider) GetAllowedOrganizations ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProvider) GetAllowedOrganizations() *setutil.CaseInsensitiveSet
func (*TestUpstreamGitHubIdentityProvider) GetAuthorizationURL ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProvider) GetAuthorizationURL() string
func (*TestUpstreamGitHubIdentityProvider) GetClientID ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProvider) GetClientID() string
func (*TestUpstreamGitHubIdentityProvider) GetGroupNameAttribute ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProvider) GetGroupNameAttribute() idpv1alpha1.GitHubGroupNameAttribute
func (*TestUpstreamGitHubIdentityProvider) GetResourceName ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProvider) GetResourceName() string
func (*TestUpstreamGitHubIdentityProvider) GetResourceUID ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProvider) GetResourceUID() types.UID
func (*TestUpstreamGitHubIdentityProvider) GetScopes ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProvider) GetScopes() []string
func (*TestUpstreamGitHubIdentityProvider) GetUser ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProvider) GetUser(ctx context.Context, accessToken string, idpDisplayName string) (*upstreamprovider.GitHubUser, error)
func (*TestUpstreamGitHubIdentityProvider) GetUserArgs ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProvider) GetUserArgs(call int) *GetUserArgs
func (*TestUpstreamGitHubIdentityProvider) GetUserCallCount ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProvider) GetUserCallCount() int
func (*TestUpstreamGitHubIdentityProvider) GetUsernameAttribute ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProvider) GetUsernameAttribute() idpv1alpha1.GitHubUsernameAttribute
type TestUpstreamGitHubIdentityProviderBuilder ¶ added in v0.31.0
type TestUpstreamGitHubIdentityProviderBuilder struct {
// contains filtered or unexported fields
}
func NewTestUpstreamGitHubIdentityProviderBuilder ¶ added in v0.31.0
func NewTestUpstreamGitHubIdentityProviderBuilder() *TestUpstreamGitHubIdentityProviderBuilder
func (*TestUpstreamGitHubIdentityProviderBuilder) Build ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProviderBuilder) Build() *TestUpstreamGitHubIdentityProvider
func (*TestUpstreamGitHubIdentityProviderBuilder) WithAccessToken ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProviderBuilder) WithAccessToken(token string) *TestUpstreamGitHubIdentityProviderBuilder
func (*TestUpstreamGitHubIdentityProviderBuilder) WithAllowedOrganizations ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProviderBuilder) WithAllowedOrganizations(value *setutil.CaseInsensitiveSet) *TestUpstreamGitHubIdentityProviderBuilder
func (*TestUpstreamGitHubIdentityProviderBuilder) WithAuthcodeExchangeError ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProviderBuilder) WithAuthcodeExchangeError(err error) *TestUpstreamGitHubIdentityProviderBuilder
func (*TestUpstreamGitHubIdentityProviderBuilder) WithAuthorizationURL ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProviderBuilder) WithAuthorizationURL(value string) *TestUpstreamGitHubIdentityProviderBuilder
func (*TestUpstreamGitHubIdentityProviderBuilder) WithClientID ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProviderBuilder) WithClientID(value string) *TestUpstreamGitHubIdentityProviderBuilder
func (*TestUpstreamGitHubIdentityProviderBuilder) WithDisplayNameForFederationDomain ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProviderBuilder) WithDisplayNameForFederationDomain(value string) *TestUpstreamGitHubIdentityProviderBuilder
func (*TestUpstreamGitHubIdentityProviderBuilder) WithGetUserError ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProviderBuilder) WithGetUserError(err error) *TestUpstreamGitHubIdentityProviderBuilder
func (*TestUpstreamGitHubIdentityProviderBuilder) WithGroupNameAttribute ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProviderBuilder) WithGroupNameAttribute(value idpv1alpha1.GitHubGroupNameAttribute) *TestUpstreamGitHubIdentityProviderBuilder
func (*TestUpstreamGitHubIdentityProviderBuilder) WithName ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProviderBuilder) WithName(value string) *TestUpstreamGitHubIdentityProviderBuilder
func (*TestUpstreamGitHubIdentityProviderBuilder) WithResourceUID ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProviderBuilder) WithResourceUID(value types.UID) *TestUpstreamGitHubIdentityProviderBuilder
func (*TestUpstreamGitHubIdentityProviderBuilder) WithScopes ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProviderBuilder) WithScopes(value []string) *TestUpstreamGitHubIdentityProviderBuilder
func (*TestUpstreamGitHubIdentityProviderBuilder) WithTransformsForFederationDomain ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProviderBuilder) WithTransformsForFederationDomain(transforms *idtransform.TransformationPipeline) *TestUpstreamGitHubIdentityProviderBuilder
func (*TestUpstreamGitHubIdentityProviderBuilder) WithUser ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProviderBuilder) WithUser(user *upstreamprovider.GitHubUser) *TestUpstreamGitHubIdentityProviderBuilder
func (*TestUpstreamGitHubIdentityProviderBuilder) WithUsernameAttribute ¶ added in v0.31.0
func (u *TestUpstreamGitHubIdentityProviderBuilder) WithUsernameAttribute(value idpv1alpha1.GitHubUsernameAttribute) *TestUpstreamGitHubIdentityProviderBuilder
type TestUpstreamLDAPIdentityProvider ¶
type TestUpstreamLDAPIdentityProvider struct { Name string ResourceUID types.UID URL *url.URL AuthenticateFunc func(ctx context.Context, username, password string) (*authenticators.Response, bool, error) PerformRefreshErr error PerformRefreshGroups []string DisplayNameForFederationDomain string TransformsForFederationDomain *idtransform.TransformationPipeline // contains filtered or unexported fields }
func (*TestUpstreamLDAPIdentityProvider) AuthenticateUser ¶
func (u *TestUpstreamLDAPIdentityProvider) AuthenticateUser(ctx context.Context, username, password string) (*authenticators.Response, bool, error)
func (*TestUpstreamLDAPIdentityProvider) GetResourceName ¶ added in v0.31.0
func (u *TestUpstreamLDAPIdentityProvider) GetResourceName() string
func (*TestUpstreamLDAPIdentityProvider) GetResourceUID ¶ added in v0.13.0
func (u *TestUpstreamLDAPIdentityProvider) GetResourceUID() types.UID
func (*TestUpstreamLDAPIdentityProvider) GetURL ¶
func (u *TestUpstreamLDAPIdentityProvider) GetURL() *url.URL
func (*TestUpstreamLDAPIdentityProvider) PerformRefresh ¶ added in v0.13.0
func (u *TestUpstreamLDAPIdentityProvider) PerformRefresh(ctx context.Context, storedRefreshAttributes upstreamprovider.LDAPRefreshAttributes, idpDisplayName string) ([]string, error)
func (*TestUpstreamLDAPIdentityProvider) PerformRefreshArgs ¶ added in v0.13.0
func (u *TestUpstreamLDAPIdentityProvider) PerformRefreshArgs(call int) *PerformLDAPRefreshArgs
func (*TestUpstreamLDAPIdentityProvider) PerformRefreshCallCount ¶ added in v0.13.0
func (u *TestUpstreamLDAPIdentityProvider) PerformRefreshCallCount() int
type TestUpstreamLDAPIdentityProviderBuilder ¶ added in v0.26.0
type TestUpstreamLDAPIdentityProviderBuilder struct {
// contains filtered or unexported fields
}
func NewTestUpstreamLDAPIdentityProviderBuilder ¶ added in v0.26.0
func NewTestUpstreamLDAPIdentityProviderBuilder() *TestUpstreamLDAPIdentityProviderBuilder
func (*TestUpstreamLDAPIdentityProviderBuilder) Build ¶ added in v0.26.0
func (t *TestUpstreamLDAPIdentityProviderBuilder) Build() *TestUpstreamLDAPIdentityProvider
func (*TestUpstreamLDAPIdentityProviderBuilder) WithAuthenticateFunc ¶ added in v0.26.0
func (t *TestUpstreamLDAPIdentityProviderBuilder) WithAuthenticateFunc(f func(ctx context.Context, username, password string) (*authenticators.Response, bool, error)) *TestUpstreamLDAPIdentityProviderBuilder
func (*TestUpstreamLDAPIdentityProviderBuilder) WithDisplayNameForFederationDomain ¶ added in v0.26.0
func (t *TestUpstreamLDAPIdentityProviderBuilder) WithDisplayNameForFederationDomain(displayName string) *TestUpstreamLDAPIdentityProviderBuilder
func (*TestUpstreamLDAPIdentityProviderBuilder) WithName ¶ added in v0.26.0
func (t *TestUpstreamLDAPIdentityProviderBuilder) WithName(name string) *TestUpstreamLDAPIdentityProviderBuilder
func (*TestUpstreamLDAPIdentityProviderBuilder) WithPerformRefreshErr ¶ added in v0.26.0
func (t *TestUpstreamLDAPIdentityProviderBuilder) WithPerformRefreshErr(err error) *TestUpstreamLDAPIdentityProviderBuilder
func (*TestUpstreamLDAPIdentityProviderBuilder) WithPerformRefreshGroups ¶ added in v0.26.0
func (t *TestUpstreamLDAPIdentityProviderBuilder) WithPerformRefreshGroups(groups []string) *TestUpstreamLDAPIdentityProviderBuilder
func (*TestUpstreamLDAPIdentityProviderBuilder) WithResourceUID ¶ added in v0.26.0
func (t *TestUpstreamLDAPIdentityProviderBuilder) WithResourceUID(uid types.UID) *TestUpstreamLDAPIdentityProviderBuilder
func (*TestUpstreamLDAPIdentityProviderBuilder) WithTransformsForFederationDomain ¶ added in v0.26.0
func (t *TestUpstreamLDAPIdentityProviderBuilder) WithTransformsForFederationDomain(transforms *idtransform.TransformationPipeline) *TestUpstreamLDAPIdentityProviderBuilder
func (*TestUpstreamLDAPIdentityProviderBuilder) WithURL ¶ added in v0.26.0
func (t *TestUpstreamLDAPIdentityProviderBuilder) WithURL(url *url.URL) *TestUpstreamLDAPIdentityProviderBuilder
type TestUpstreamOIDCIdentityProvider ¶
type TestUpstreamOIDCIdentityProvider struct { Name string ClientID string ResourceUID types.UID AuthorizationURL url.URL UserInfoURL bool RevocationURL *url.URL UsernameClaim string GroupsClaim string Scopes []string AdditionalAuthcodeParams map[string]string AdditionalClaimMappings map[string]string AllowPasswordGrant bool DisplayNameForFederationDomain string TransformsForFederationDomain *idtransform.TransformationPipeline ExchangeAuthcodeAndValidateTokensFunc func( ctx context.Context, authcode string, pkceCodeVerifier oidcpkce.Code, expectedIDTokenNonce nonce.Nonce, ) (*oidctypes.Token, error) PasswordCredentialsGrantAndValidateTokensFunc func( ctx context.Context, username string, password string, ) (*oidctypes.Token, error) PerformRefreshFunc func(ctx context.Context, refreshToken string) (*oauth2.Token, error) RevokeTokenFunc func(ctx context.Context, refreshToken string, tokenType upstreamprovider.RevocableTokenType) error ValidateTokenAndMergeWithUserInfoFunc func(ctx context.Context, tok *oauth2.Token, expectedIDTokenNonce nonce.Nonce) (*oidctypes.Token, error) // contains filtered or unexported fields }
func (*TestUpstreamOIDCIdentityProvider) AllowsPasswordGrant ¶ added in v0.11.0
func (u *TestUpstreamOIDCIdentityProvider) AllowsPasswordGrant() bool
func (*TestUpstreamOIDCIdentityProvider) ExchangeAuthcodeAndValidateTokens ¶
func (*TestUpstreamOIDCIdentityProvider) ExchangeAuthcodeAndValidateTokensArgs ¶
func (u *TestUpstreamOIDCIdentityProvider) ExchangeAuthcodeAndValidateTokensArgs(call int) *ExchangeAuthcodeAndValidateTokenArgs
func (*TestUpstreamOIDCIdentityProvider) ExchangeAuthcodeAndValidateTokensCallCount ¶
func (u *TestUpstreamOIDCIdentityProvider) ExchangeAuthcodeAndValidateTokensCallCount() int
func (*TestUpstreamOIDCIdentityProvider) GetAdditionalAuthcodeParams ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProvider) GetAdditionalAuthcodeParams() map[string]string
func (*TestUpstreamOIDCIdentityProvider) GetAdditionalClaimMappings ¶ added in v0.22.0
func (u *TestUpstreamOIDCIdentityProvider) GetAdditionalClaimMappings() map[string]string
func (*TestUpstreamOIDCIdentityProvider) GetAuthorizationURL ¶
func (u *TestUpstreamOIDCIdentityProvider) GetAuthorizationURL() *url.URL
func (*TestUpstreamOIDCIdentityProvider) GetClientID ¶
func (u *TestUpstreamOIDCIdentityProvider) GetClientID() string
func (*TestUpstreamOIDCIdentityProvider) GetGroupsClaim ¶
func (u *TestUpstreamOIDCIdentityProvider) GetGroupsClaim() string
func (*TestUpstreamOIDCIdentityProvider) GetResourceName ¶ added in v0.31.0
func (u *TestUpstreamOIDCIdentityProvider) GetResourceName() string
func (*TestUpstreamOIDCIdentityProvider) GetResourceUID ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProvider) GetResourceUID() types.UID
func (*TestUpstreamOIDCIdentityProvider) GetRevocationURL ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProvider) GetRevocationURL() *url.URL
func (*TestUpstreamOIDCIdentityProvider) GetScopes ¶
func (u *TestUpstreamOIDCIdentityProvider) GetScopes() []string
func (*TestUpstreamOIDCIdentityProvider) GetUsernameClaim ¶
func (u *TestUpstreamOIDCIdentityProvider) GetUsernameClaim() string
func (*TestUpstreamOIDCIdentityProvider) HasUserInfoURL ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProvider) HasUserInfoURL() bool
func (*TestUpstreamOIDCIdentityProvider) PasswordCredentialsGrantAndValidateTokens ¶ added in v0.11.0
func (*TestUpstreamOIDCIdentityProvider) PasswordCredentialsGrantAndValidateTokensArgs ¶ added in v0.29.0
func (u *TestUpstreamOIDCIdentityProvider) PasswordCredentialsGrantAndValidateTokensArgs(call int) *PasswordCredentialsGrantAndValidateTokensArgs
func (*TestUpstreamOIDCIdentityProvider) PasswordCredentialsGrantAndValidateTokensCallCount ¶ added in v0.29.0
func (u *TestUpstreamOIDCIdentityProvider) PasswordCredentialsGrantAndValidateTokensCallCount() int
func (*TestUpstreamOIDCIdentityProvider) PerformRefresh ¶ added in v0.13.0
func (*TestUpstreamOIDCIdentityProvider) PerformRefreshArgs ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProvider) PerformRefreshArgs(call int) *PerformOIDCRefreshArgs
func (*TestUpstreamOIDCIdentityProvider) PerformRefreshCallCount ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProvider) PerformRefreshCallCount() int
func (*TestUpstreamOIDCIdentityProvider) RevokeToken ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProvider) RevokeToken(ctx context.Context, token string, tokenType upstreamprovider.RevocableTokenType) error
func (*TestUpstreamOIDCIdentityProvider) RevokeTokenArgs ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProvider) RevokeTokenArgs(call int) *RevokeTokenArgs
func (*TestUpstreamOIDCIdentityProvider) RevokeTokenCallCount ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProvider) RevokeTokenCallCount() int
func (*TestUpstreamOIDCIdentityProvider) ValidateTokenAndMergeWithUserInfo ¶ added in v0.13.0
func (*TestUpstreamOIDCIdentityProvider) ValidateTokenAndMergeWithUserInfoArgs ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProvider) ValidateTokenAndMergeWithUserInfoArgs(call int) *ValidateTokenAndMergeWithUserInfoArgs
func (*TestUpstreamOIDCIdentityProvider) ValidateTokenAndMergeWithUserInfoCallCount ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProvider) ValidateTokenAndMergeWithUserInfoCallCount() int
type TestUpstreamOIDCIdentityProviderBuilder ¶ added in v0.11.0
type TestUpstreamOIDCIdentityProviderBuilder struct {
// contains filtered or unexported fields
}
func NewTestUpstreamOIDCIdentityProviderBuilder ¶ added in v0.11.0
func NewTestUpstreamOIDCIdentityProviderBuilder() *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) Build ¶ added in v0.11.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) Build() *TestUpstreamOIDCIdentityProvider
func (*TestUpstreamOIDCIdentityProviderBuilder) WithAccessToken ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithAccessToken(token string, expiry metav1.Time) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithAdditionalAuthcodeParams ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithAdditionalAuthcodeParams(params map[string]string) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithAdditionalClaimMappings ¶ added in v0.22.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithAdditionalClaimMappings(m map[string]string) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithAllowPasswordGrant ¶ added in v0.11.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithAllowPasswordGrant(value bool) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithAuthorizationURL ¶ added in v0.11.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithAuthorizationURL(value url.URL) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithClientID ¶ added in v0.11.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithClientID(value string) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithDisplayNameForFederationDomain ¶ added in v0.26.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithDisplayNameForFederationDomain(displayName string) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithEmptyAccessToken ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithEmptyAccessToken() *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithEmptyRefreshToken ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithEmptyRefreshToken() *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithGroupsClaim ¶ added in v0.11.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithGroupsClaim(value string) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithIDTokenClaim ¶ added in v0.11.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithIDTokenClaim(name string, value any) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithName ¶ added in v0.11.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithName(value string) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithPasswordGrantError ¶ added in v0.11.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithPasswordGrantError(err error) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithPerformRefreshError ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithPerformRefreshError(err error) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithRefreshToken ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithRefreshToken(token string) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithRefreshedTokens ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithRefreshedTokens(tokens *oauth2.Token) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithResourceUID ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithResourceUID(value types.UID) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithRevokeTokenError ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithRevokeTokenError(err error) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithScopes ¶ added in v0.11.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithScopes(values []string) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithTransformsForFederationDomain ¶ added in v0.26.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithTransformsForFederationDomain(transforms *idtransform.TransformationPipeline) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithUpstreamAuthcodeExchangeError ¶ added in v0.11.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithUpstreamAuthcodeExchangeError(err error) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithUserInfoURL ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithUserInfoURL() *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithUsernameClaim ¶ added in v0.11.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithUsernameClaim(value string) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithValidateTokenAndMergeWithUserInfoError ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithValidateTokenAndMergeWithUserInfoError(err error) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithValidatedAndMergedWithUserInfoTokens ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithValidatedAndMergedWithUserInfoTokens(tokens *oidctypes.Token) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithoutAccessToken ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithoutAccessToken() *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithoutGroupsClaim ¶ added in v0.11.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithoutGroupsClaim() *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithoutIDTokenClaim ¶ added in v0.11.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithoutIDTokenClaim(claim string) *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithoutRefreshToken ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithoutRefreshToken() *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithoutUserInfoURL ¶ added in v0.13.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithoutUserInfoURL() *TestUpstreamOIDCIdentityProviderBuilder
func (*TestUpstreamOIDCIdentityProviderBuilder) WithoutUsernameClaim ¶ added in v0.11.0
func (u *TestUpstreamOIDCIdentityProviderBuilder) WithoutUsernameClaim() *TestUpstreamOIDCIdentityProviderBuilder
type UpstreamStateParamBuilder ¶ added in v0.18.0
type UpstreamStateParamBuilder ExpectedUpstreamStateParamFormat
func (*UpstreamStateParamBuilder) Build ¶ added in v0.18.0
func (b *UpstreamStateParamBuilder) Build(t *testing.T, stateEncoder *securecookie.SecureCookie) string
func (*UpstreamStateParamBuilder) WithAuthorizeRequestParams ¶ added in v0.18.0
func (b *UpstreamStateParamBuilder) WithAuthorizeRequestParams(params string) *UpstreamStateParamBuilder
func (*UpstreamStateParamBuilder) WithCSRF ¶ added in v0.18.0
func (b *UpstreamStateParamBuilder) WithCSRF(csrf string) *UpstreamStateParamBuilder
func (*UpstreamStateParamBuilder) WithNonce ¶ added in v0.18.0
func (b *UpstreamStateParamBuilder) WithNonce(nonce string) *UpstreamStateParamBuilder
func (*UpstreamStateParamBuilder) WithPKCE ¶ added in v0.18.0
func (b *UpstreamStateParamBuilder) WithPKCE(pkce string) *UpstreamStateParamBuilder
func (*UpstreamStateParamBuilder) WithStateVersion ¶ added in v0.18.0
func (b *UpstreamStateParamBuilder) WithStateVersion(version string) *UpstreamStateParamBuilder
func (*UpstreamStateParamBuilder) WithUpstreamIDPName ¶ added in v0.31.0
func (b *UpstreamStateParamBuilder) WithUpstreamIDPName(upstreamIDPName string) *UpstreamStateParamBuilder
func (*UpstreamStateParamBuilder) WithUpstreamIDPType ¶ added in v0.18.0
func (b *UpstreamStateParamBuilder) WithUpstreamIDPType(upstreamIDPType idpdiscoveryv1alpha1.IDPType) *UpstreamStateParamBuilder
type ValidateTokenAndMergeWithUserInfoArgs ¶ added in v0.13.0
type ValidateTokenAndMergeWithUserInfoArgs struct { Ctx context.Context Tok *oauth2.Token ExpectedIDTokenNonce nonce.Nonce RequireIDToken bool RequireUserInfo bool }
ValidateTokenAndMergeWithUserInfoArgs is used to spy on calls to TestUpstreamOIDCIdentityProvider.ValidateTokenAndMergeWithUserInfoFunc().