-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to configure auto logout after browser inactivity #20298
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clever approach! Code looks great!
95d587a
to
c21af6d
Compare
/compile amend / |
c21af6d
to
e311a21
Compare
Jsunit says no
|
@ChristophWurst @skjnldsv Any idea how i could properly mock the loadState call in the legacy js tests? Otherwise I'd just add a fallback to |
oh wow 🙈 |
I'm afraid you can't 😢 |
I guess this will be for 20 ? |
* | ||
* Defaults to ``false`` | ||
*/ | ||
'auto_logout' => false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably make sure that if this is set to true we don't generate a remember me cookie
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6052f82 should to the trick, please have a look
efc016c
to
6052f82
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good otherwise!
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Guess this is good to go |
Signed-off-by: Julius Härtl <[email protected]>
6052f82
to
a143e36
Compare
So this took me quite some time to figure out why the legacy jsunit tests failed. I pushed a workaround for now (see a143e36 for details), but ideally we should move those tests to the new chai/sinon tests. I'll give that a try in a follow up. |
Signed-off-by: Julius Härtl <[email protected]>
It passed |
So, this recently broke viewer's tests ^^ server/lib/private/Template/JSConfigHelper.php Lines 97 to 107 in cbd2086
Requires 11 arguments, while 10 are passed here: server/core/Controller/OCJSController.php Lines 81 to 92 in 5bf3d1b
|
Fixing |
Fix in #20678 |
With this a a browser will automatically log out the user after no activity during
session_lifetime
even if thesession_keepalive
is enabled.