Documentation ¶
Overview ¶
nolint
nolint
Index ¶
- func AddAndLoginIdentities(t *testing.T, reg *driver.RegistryDefault, public *httptest.Server, ...) map[string]*http.Client
- func CleanSQL(t *testing.T, c *pop.Connection)
- func CourierExpectLinkInMessage(t *testing.T, message *courier.Message, offset int) string
- func CourierExpectMessage(t *testing.T, reg interface{ ... }, recipient, subject string) *courier.Message
- func GetRecoveryRequest(t *testing.T, client *http.Client, ts *httptest.Server) *common.GetSelfServiceBrowserRecoveryRequestOK
- func GetSettingsMethodConfig(t *testing.T, primaryUser *http.Client, ts *httptest.Server, id string) *models.RequestMethodConfig
- func GetSettingsRequest(t *testing.T, primaryUser *http.Client, ts *httptest.Server) *common.GetSelfServiceBrowserSettingsRequestOK
- func HTTPPostForm(t *testing.T, client *http.Client, remote string, in *url.Values) ([]byte, *http.Response)
- func HTTPRequestJSON(t *testing.T, client *http.Client, method string, url string, in interface{}) ([]byte, *http.Response)
- func HookConfigRedirectTo(t *testing.T, u string) (m []map[string]interface{})
- func HookVerify(t *testing.T) (m []map[string]interface{})
- func InitKratosServers(t *testing.T, reg driver.Registry, public, admin *httptest.Server)
- func JSONEq(t *testing.T, expected, actual interface{}, messageAndArgs ...interface{})
- func MockGetSession(t *testing.T, reg mockDeps) httprouter.Handle
- func MockHydrateCookieClient(t *testing.T, c *http.Client, u string)
- func MockMakeAuthenticatedRequest(t *testing.T, reg mockDeps, conf configuration.Provider, ...) ([]byte, *http.Response)
- func MockSessionCreateHandler(t *testing.T, reg mockDeps) (httprouter.Handle, *session.Session)
- func MockSessionCreateHandlerWithIdentity(t *testing.T, reg mockDeps, i *identity.Identity) (httprouter.Handle, *session.Session)
- func MockSetSession(t *testing.T, reg mockDeps, conf configuration.Provider) httprouter.Handle
- func NewClientWithCookies(t *testing.T) *http.Client
- func NewErrorTestServer(t *testing.T, reg interface{ ... }) *httptest.Server
- func NewKratosServer(t *testing.T, reg driver.Registry) (public, admin *httptest.Server)
- func NewKratosServerWithCSRF(t *testing.T, reg driver.Registry) (public, admin *httptest.Server)
- func NewKratosServerWithRouters(t *testing.T, reg driver.Registry, rp *x.RouterPublic, ra *x.RouterAdmin) (public, admin *httptest.Server)
- func NewKratosServers(t *testing.T) (public, admin *httptest.Server)
- func NewLoginUIRequestEchoServer(t *testing.T, reg driver.Registry) *httptest.Server
- func NewRecoveryUITestServer(t *testing.T) *httptest.Server
- func NewRedirTS(t *testing.T, body string) *httptest.Server
- func NewSDKClient(ts *httptest.Server) *client.OryKratos
- func NewSDKClientFromURL(u string) *client.OryKratos
- func NewSessionClient(t *testing.T, u string) *http.Client
- func NewSettingsAPIServer(t *testing.T, reg *driver.RegistryDefault, ids map[string]*identity.Identity) (*httptest.Server, *httptest.Server, map[string]*http.Client)
- func NewSettingsLoginAcceptAPIServer(t *testing.T, adminClient *client.OryKratos) *httptest.Server
- func NewSettingsUITestServer(t *testing.T) *httptest.Server
- func RecoveryFlowEnable(enable bool)
- func RecoverySubmitForm(t *testing.T, f *models.RequestMethodConfig, hc *http.Client, ...) (string, *common.GetSelfServiceBrowserRecoveryRequestOK)
- func SDKFormFieldsToURLValues(ff models.FormFields) url.Values
- func SelfServiceHookConfigReset()
- func SelfServiceHookCreateFakeIdentity(t *testing.T, reg driver.Registry) *identity.Identity
- func SelfServiceHookFakeIdentity(t *testing.T) *identity.Identity
- func SelfServiceHookLoginErrorHandler(t *testing.T, w http.ResponseWriter, r *http.Request, err error) bool
- func SelfServiceHookLoginSetDefaultRedirectTo(value string)
- func SelfServiceHookLoginSetDefaultRedirectToStrategy(strategy, value string)
- func SelfServiceHookLoginViperSetPost(strategy string, c []configuration.SelfServiceHook)
- func SelfServiceHookRegistrationErrorHandler(t *testing.T, w http.ResponseWriter, r *http.Request, err error) bool
- func SelfServiceHookRegistrationSetDefaultRedirectTo(value string)
- func SelfServiceHookRegistrationSetDefaultRedirectToStrategy(strategy, value string)
- func SelfServiceHookRegistrationViperSetPost(strategy string, c []configuration.SelfServiceHook)
- func SelfServiceHookSettingsErrorHandler(t *testing.T, w http.ResponseWriter, r *http.Request, err error) bool
- func SelfServiceHookSettingsSetDefaultRedirectTo(value string)
- func SelfServiceHookSettingsSetDefaultRedirectToStrategy(strategy, value string)
- func SelfServiceMakeLoginPostHookRequest(t *testing.T, ts *httptest.Server, asAPI bool, query url.Values) (*http.Response, string)
- func SelfServiceMakeLoginPreHookRequest(t *testing.T, ts *httptest.Server) (*http.Response, string)
- func SelfServiceMakeRegistrationPostHookRequest(t *testing.T, ts *httptest.Server, asAPI bool, query url.Values) (*http.Response, string)
- func SelfServiceMakeRegistrationPreHookRequest(t *testing.T, ts *httptest.Server) (*http.Response, string)
- func SelfServiceMakeSettingsPostHookRequest(t *testing.T, ts *httptest.Server, asAPI bool, query url.Values) (*http.Response, string)
- func SettingsSubmitForm(t *testing.T, f *models.RequestMethodConfig, hc *http.Client, ...) (string, *common.GetSelfServiceBrowserSettingsRequestOK)
- func StrategyEnable(strategy string, enable bool)
- func TestSelfServicePreHook(configKey string, ...) func(t *testing.T)
- func VerificationFlowEnable(enable bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAndLoginIdentities ¶
func AddAndLoginIdentities(t *testing.T, reg *driver.RegistryDefault, public *httptest.Server, ids map[string]*identity.Identity) map[string]*http.Client
AddAndLoginIdentities adds the given identities to the store (like a registration flow) and returns http.Clients which contain their sessions.
func CourierExpectMessage ¶
func GetRecoveryRequest ¶
func GetSettingsMethodConfig ¶
func GetSettingsRequest ¶
func HTTPPostForm ¶
func HTTPRequestJSON ¶
func HookConfigRedirectTo ¶
func HookVerify ¶
func InitKratosServers ¶
func MockGetSession ¶
func MockGetSession(t *testing.T, reg mockDeps) httprouter.Handle
func MockSetSession ¶
func MockSetSession(t *testing.T, reg mockDeps, conf configuration.Provider) httprouter.Handle
func NewErrorTestServer ¶
func NewKratosServer ¶
func NewKratosServerWithCSRF ¶
func NewKratosServerWithRouters ¶
func NewKratosServerWithRouters(t *testing.T, reg driver.Registry, rp *x.RouterPublic, ra *x.RouterAdmin) (public, admin *httptest.Server)
func NewSDKClientFromURL ¶
func NewSettingsAPIServer ¶
func RecoveryFlowEnable ¶
func RecoveryFlowEnable(enable bool)
func RecoverySubmitForm ¶
func SDKFormFieldsToURLValues ¶
func SDKFormFieldsToURLValues(ff models.FormFields) url.Values
func SelfServiceHookConfigReset ¶
func SelfServiceHookConfigReset()
func SelfServiceHookLoginSetDefaultRedirectTo ¶
func SelfServiceHookLoginSetDefaultRedirectTo(value string)
func SelfServiceHookLoginSetDefaultRedirectToStrategy ¶
func SelfServiceHookLoginSetDefaultRedirectToStrategy(strategy, value string)
func SelfServiceHookLoginViperSetPost ¶
func SelfServiceHookLoginViperSetPost(strategy string, c []configuration.SelfServiceHook)
func SelfServiceHookRegistrationSetDefaultRedirectTo ¶
func SelfServiceHookRegistrationSetDefaultRedirectTo(value string)
func SelfServiceHookRegistrationSetDefaultRedirectToStrategy ¶
func SelfServiceHookRegistrationSetDefaultRedirectToStrategy(strategy, value string)
func SelfServiceHookRegistrationViperSetPost ¶
func SelfServiceHookRegistrationViperSetPost(strategy string, c []configuration.SelfServiceHook)
func SelfServiceHookSettingsSetDefaultRedirectTo ¶
func SelfServiceHookSettingsSetDefaultRedirectTo(value string)
func SelfServiceHookSettingsSetDefaultRedirectToStrategy ¶
func SelfServiceHookSettingsSetDefaultRedirectToStrategy(strategy, value string)
func SettingsSubmitForm ¶
func StrategyEnable ¶
func TestSelfServicePreHook ¶
func VerificationFlowEnable ¶
func VerificationFlowEnable(enable bool)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.