summaryrefslogtreecommitdiff
path: root/internal/mocks
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/mocks
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/mocks')
-rw-r--r--internal/mocks/authelia_ctx.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/mocks/authelia_ctx.go b/internal/mocks/authelia_ctx.go
index 1ededfa1d..c218c4eec 100644
--- a/internal/mocks/authelia_ctx.go
+++ b/internal/mocks/authelia_ctx.go
@@ -51,9 +51,7 @@ func NewMockAutheliaCtx(t *testing.T) *MockAutheliaCtx {
datetime, _ := time.Parse("2006-Jan-02", "2013-Feb-03")
mockAuthelia.Clock.Set(datetime)
- config := schema.Configuration{
- DefaultRedirectionURL: &url.URL{Scheme: "https", Host: "fallback.example.com"},
- }
+ config := schema.Configuration{}
config.Session.Cookies = []schema.SessionCookie{
{