Skip to content

Commit b2c9204

Browse files
authored
fix(authentication): delete cookie (in chrome) on logout (DEV-325) (#1970)
1 parent 55b5d4b commit b2c9204

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎webapi/src/main/scala/org/knora/webapi/routing/Authenticator.scala‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ trait Authenticator extends InstrumentationSupport {
327327
domain = cookieDomain,
328328
path = Some("/"),
329329
httpOnly = true,
330-
expires = Some(DateTime(1970, 1, 1, 0, 0, 0))
330+
expires = Some(DateTime(1970, 1, 1, 0, 0, 0)),
331+
maxAge = Some(0)
331332
)
332333
)
333334
),

‎webapi/src/test/scala/org/knora/webapi/e2e/v1/AuthenticationV1E2ESpec.scala‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ class AuthenticationV1E2ESpec
162162
domain = Some(settings.cookieDomain),
163163
path = Some("/"),
164164
httpOnly = true,
165-
expires = Some(DateTime(1970, 1, 1, 0, 0, 0))
165+
expires = Some(DateTime(1970, 1, 1, 0, 0, 0)),
166+
maxAge = Some(0)
166167
)
167168
)
168169
)

0 commit comments

Comments
 (0)