summaryrefslogtreecommitdiff
path: root/internal/handlers/handler_firstfactor_test.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2023-10-02 13:50:36 +1100
committerGitHub <noreply@github.com>2023-10-02 13:50:36 +1100
commit465d30f415a92e3708914ca14e24e6021935f633 (patch)
treef55af9fee0542ebc8da29683497d0f3c3eec2514 /internal/handlers/handler_firstfactor_test.go
parentf24dd6ad17b932687ba34b458d66babc81713b8b (diff)
refactor: adjust default redirect url behaviour (#6060)
This ensures people using the new cookie configurations also use the new default url configurations, as well as ensuring we do not fallback to the global default url and instead use it specifically to seed the default values for the compatibility mode.
Diffstat (limited to 'internal/handlers/handler_firstfactor_test.go')
-rw-r--r--internal/handlers/handler_firstfactor_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/handlers/handler_firstfactor_test.go b/internal/handlers/handler_firstfactor_test.go
index ec192fcd6..256da458d 100644
--- a/internal/handlers/handler_firstfactor_test.go
+++ b/internal/handlers/handler_firstfactor_test.go
@@ -316,7 +316,7 @@ type FirstFactorRedirectionSuite struct {
func (s *FirstFactorRedirectionSuite) SetupTest() {
s.mock = mocks.NewMockAutheliaCtx(s.T())
- s.mock.Ctx.Configuration.DefaultRedirectionURL = &url.URL{Scheme: "https", Host: "default.local"}
+ s.mock.Ctx.Configuration.Session.Cookies[0].DefaultRedirectionURL = &url.URL{Scheme: "https", Host: "default.local"}
s.mock.Ctx.Configuration.AccessControl.DefaultPolicy = testBypass
s.mock.Ctx.Configuration.AccessControl.Rules = []schema.AccessControlRule{
{