Documentation ¶
Index ¶
- func DecodeIDToken(t *testing.T, token *oauth2.Token) gjson.Result
- func FlexibleServer(t *testing.T, h *http.HandlerFunc) string
- func HTTPServerNoExpectedCallHandler(t *testing.T) http.HandlerFunc
- func HTTPServerNotImplementedHandler(w http.ResponseWriter, _ *http.Request)
- func IntrospectToken(t *testing.T, conf *oauth2.Config, token *oauth2.Token, ...) gjson.Result
- func JanitorTests(conf *config.Provider, consentManager consent.Manager, ...) func(t *testing.T)
- func NewCallbackURL(t *testing.T, prefix string, h http.HandlerFunc) string
- func NewEmptyCookieJar(t *testing.T) *cookiejar.Jar
- func NewEmptyJarClient(t *testing.T) *http.Client
- func NewIDToken(t *testing.T, reg driver.Registry, subject string) string
- func NewIDTokenWithClaims(t *testing.T, reg driver.Registry, claims djwt.MapClaims) string
- func NewIDTokenWithExpiry(t *testing.T, reg driver.Registry, subject string, exp time.Duration) string
- func NewLoginConsentUI(t *testing.T, c *config.Provider, login, consent http.HandlerFunc)
- func NewOAuth2Server(t *testing.T, reg driver.Registry) (publicTS, adminTS *httptest.Server)
- func Userinfo(t *testing.T, token *oauth2.Token, publicTS *httptest.Server) gjson.Result
- type JanitorConsentTestHelper
- func (j *JanitorConsentTestHelper) AccessTokenNotAfterSetup(ctx context.Context, cl client.Manager, store x.FositeStorer) func(t *testing.T)
- func (j *JanitorConsentTestHelper) AccessTokenNotAfterValidate(ctx context.Context, notAfter time.Time, store x.FositeStorer) func(t *testing.T)
- func (j *JanitorConsentTestHelper) ConsentRejectionSetup(ctx context.Context, cm consent.Manager, cl client.Manager) func(t *testing.T)
- func (j *JanitorConsentTestHelper) ConsentRejectionValidate(ctx context.Context, cm consent.Manager) func(t *testing.T)
- func (j *JanitorConsentTestHelper) ConsentTimeoutSetup(ctx context.Context, cm consent.Manager, cl client.Manager) func(t *testing.T)
- func (j *JanitorConsentTestHelper) ConsentTimeoutValidate(ctx context.Context, cm consent.Manager) func(t *testing.T)
- func (j *JanitorConsentTestHelper) GetAccessTokenLifespan() time.Duration
- func (j *JanitorConsentTestHelper) GetConfig() *config.Provider
- func (j *JanitorConsentTestHelper) GetConsentRequestLifespan() time.Duration
- func (j *JanitorConsentTestHelper) GetDSN() string
- func (j *JanitorConsentTestHelper) GetNotAfterTestCycles() map[string]time.Duration
- func (j *JanitorConsentTestHelper) GetRefreshTokenLifespan() time.Duration
- func (j *JanitorConsentTestHelper) GetRegistry(ctx context.Context, dbname string) (driver.Registry, error)
- func (j *JanitorConsentTestHelper) GrantNotAfterSetup(ctx context.Context, cl client.Manager, gr trust.GrantManager) func(t *testing.T)
- func (j *JanitorConsentTestHelper) GrantNotAfterValidate(ctx context.Context, notAfter time.Time, gr trust.GrantManager) func(t *testing.T)
- func (j *JanitorConsentTestHelper) LimitSetup(ctx context.Context, cm consent.Manager, cl client.Manager) func(t *testing.T)
- func (j *JanitorConsentTestHelper) LimitValidate(ctx context.Context, cm consent.Manager) func(t *testing.T)
- func (j *JanitorConsentTestHelper) LoginConsentNotAfterSetup(ctx context.Context, cm consent.Manager, cl client.Manager) func(t *testing.T)
- func (j *JanitorConsentTestHelper) LoginConsentNotAfterValidate(ctx context.Context, notAfter time.Time, consentRequestLifespan time.Time, ...) func(t *testing.T)
- func (j *JanitorConsentTestHelper) LoginRejectionSetup(ctx context.Context, cm consent.Manager, cl client.Manager) func(t *testing.T)
- func (j *JanitorConsentTestHelper) LoginRejectionValidate(ctx context.Context, cm consent.Manager) func(t *testing.T)
- func (j *JanitorConsentTestHelper) LoginTimeoutSetup(ctx context.Context, cm consent.Manager, cl client.Manager) func(t *testing.T)
- func (j *JanitorConsentTestHelper) LoginTimeoutValidate(ctx context.Context, cm consent.Manager) func(t *testing.T)
- func (j *JanitorConsentTestHelper) RefreshTokenNotAfterSetup(ctx context.Context, cl client.Manager, store x.FositeStorer) func(t *testing.T)
- func (j *JanitorConsentTestHelper) RefreshTokenNotAfterValidate(ctx context.Context, notAfter time.Time, store x.FositeStorer) func(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlexibleServer ¶
func FlexibleServer(t *testing.T, h *http.HandlerFunc) string
func HTTPServerNoExpectedCallHandler ¶
func HTTPServerNoExpectedCallHandler(t *testing.T) http.HandlerFunc
func HTTPServerNotImplementedHandler ¶
func HTTPServerNotImplementedHandler(w http.ResponseWriter, _ *http.Request)
func IntrospectToken ¶
func JanitorTests ¶ added in v1.10.0
func NewCallbackURL ¶
func NewIDTokenWithClaims ¶
func NewIDTokenWithExpiry ¶
func NewLoginConsentUI ¶
func NewOAuth2Server ¶
Types ¶
type JanitorConsentTestHelper ¶ added in v1.10.0
type JanitorConsentTestHelper struct { Lifespan time.Duration // contains filtered or unexported fields }
func NewConsentJanitorTestHelper ¶ added in v1.10.0
func NewConsentJanitorTestHelper(uniqueName string) *JanitorConsentTestHelper
func (*JanitorConsentTestHelper) AccessTokenNotAfterSetup ¶ added in v1.10.0
func (j *JanitorConsentTestHelper) AccessTokenNotAfterSetup(ctx context.Context, cl client.Manager, store x.FositeStorer) func(t *testing.T)
func (*JanitorConsentTestHelper) AccessTokenNotAfterValidate ¶ added in v1.10.0
func (j *JanitorConsentTestHelper) AccessTokenNotAfterValidate(ctx context.Context, notAfter time.Time, store x.FositeStorer) func(t *testing.T)
func (*JanitorConsentTestHelper) ConsentRejectionSetup ¶ added in v1.10.0
func (*JanitorConsentTestHelper) ConsentRejectionValidate ¶ added in v1.10.0
func (*JanitorConsentTestHelper) ConsentTimeoutSetup ¶ added in v1.10.0
func (*JanitorConsentTestHelper) ConsentTimeoutValidate ¶ added in v1.10.0
func (*JanitorConsentTestHelper) GetAccessTokenLifespan ¶ added in v1.10.0
func (j *JanitorConsentTestHelper) GetAccessTokenLifespan() time.Duration
func (*JanitorConsentTestHelper) GetConfig ¶ added in v1.10.0
func (j *JanitorConsentTestHelper) GetConfig() *config.Provider
func (*JanitorConsentTestHelper) GetConsentRequestLifespan ¶ added in v1.10.0
func (j *JanitorConsentTestHelper) GetConsentRequestLifespan() time.Duration
func (*JanitorConsentTestHelper) GetDSN ¶ added in v1.10.0
func (j *JanitorConsentTestHelper) GetDSN() string
func (*JanitorConsentTestHelper) GetNotAfterTestCycles ¶ added in v1.10.0
func (j *JanitorConsentTestHelper) GetNotAfterTestCycles() map[string]time.Duration
func (*JanitorConsentTestHelper) GetRefreshTokenLifespan ¶ added in v1.10.0
func (j *JanitorConsentTestHelper) GetRefreshTokenLifespan() time.Duration
func (*JanitorConsentTestHelper) GetRegistry ¶ added in v1.10.0
func (*JanitorConsentTestHelper) GrantNotAfterSetup ¶ added in v1.11.0
func (j *JanitorConsentTestHelper) GrantNotAfterSetup(ctx context.Context, cl client.Manager, gr trust.GrantManager) func(t *testing.T)
func (*JanitorConsentTestHelper) GrantNotAfterValidate ¶ added in v1.11.0
func (j *JanitorConsentTestHelper) GrantNotAfterValidate(ctx context.Context, notAfter time.Time, gr trust.GrantManager) func(t *testing.T)
func (*JanitorConsentTestHelper) LimitSetup ¶ added in v1.10.5
func (*JanitorConsentTestHelper) LimitValidate ¶ added in v1.10.5
func (*JanitorConsentTestHelper) LoginConsentNotAfterSetup ¶ added in v1.10.0
func (*JanitorConsentTestHelper) LoginConsentNotAfterValidate ¶ added in v1.10.0
func (*JanitorConsentTestHelper) LoginRejectionSetup ¶ added in v1.10.0
func (*JanitorConsentTestHelper) LoginRejectionValidate ¶ added in v1.10.0
func (*JanitorConsentTestHelper) LoginTimeoutSetup ¶ added in v1.10.0
func (*JanitorConsentTestHelper) LoginTimeoutValidate ¶ added in v1.10.0
func (*JanitorConsentTestHelper) RefreshTokenNotAfterSetup ¶ added in v1.10.0
func (j *JanitorConsentTestHelper) RefreshTokenNotAfterSetup(ctx context.Context, cl client.Manager, store x.FositeStorer) func(t *testing.T)
func (*JanitorConsentTestHelper) RefreshTokenNotAfterValidate ¶ added in v1.10.0
func (j *JanitorConsentTestHelper) RefreshTokenNotAfterValidate(ctx context.Context, notAfter time.Time, store x.FositeStorer) func(t *testing.T)
Click to show internal directories.
Click to hide internal directories.