Documentation
¶
Index ¶
- 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 HookConfigRedirectTo(t *testing.T, u string) (m []map[string]interface{})
- func HookVerify(t *testing.T) (m []map[string]interface{})
- func MockCookieClient(t *testing.T) *http.Client
- 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 NewErrorTestServer(t *testing.T, reg interface{ ... }) *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 []identity.Identity) (*httptest.Server, *httptest.Server)
- func NewSettingsLoginAcceptAPIServer(t *testing.T, adminClient *client.OryKratos) *httptest.Server
- func NewSettingsUITestServer(t *testing.T) *httptest.Server
- 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 TestSelfServicePreHook(configKey string, ...) func(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSettingsMethodConfig ¶
func GetSettingsRequest ¶
func HookConfigRedirectTo ¶
func HookVerify ¶
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 NewSDKClientFromURL ¶
func NewSettingsAPIServer ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.