Skip to content

Commit 0c002c5

Browse files
authored
Merge pull request #3568 from DMPRoadmap/momo/add-session-timeout
Timeout session after inactivity
2 parents 2817405 + fc31d93 commit 0c002c5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## v5.0.2
44
- Bump Ruby to v3.1.4 and use `.ruby-version` in CI [#3566](https://github.com/DMPRoadmap/roadmap/pull/3566)
5+
- Enable session timeout after 90 minutes of inactivity [#3568](https://github.com/DMPRoadmap/roadmap/pull/3568)
56

67
## v5.0.1
78
- Updated seeds.rb file for identifier_schemes to include context value and removed logo_url and idenitifier_prefix for Shibboleth (as it was causing issues with SSO). [#3525](https://github.com/DMPRoadmap/roadmap/pull/3525)

app/models/user.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ class User < ApplicationRecord
6363
# Devise
6464
# Include default devise modules. Others available are:
6565
# :token_authenticatable, :confirmable,
66-
# :lockable, :timeoutable and :omniauthable
66+
# :lockable and :omniauthable
6767
devise :invitable, :database_authenticatable, :registerable, :recoverable,
68-
:rememberable, :trackable, :validatable, :omniauthable,
68+
:rememberable, :trackable, :validatable, :omniauthable, :timeoutable,
6969
omniauth_providers: %i[shibboleth orcid]
7070

7171
# default user language to the default language

config/initializers/devise.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
# ==> Configuration for :timeoutable
173173
# The time you want to timeout the user session without activity. After this
174174
# time the user will be asked for credentials again. Default is 30 minutes.
175-
config.timeout_in = 3.hours
175+
config.timeout_in = 90.minutes
176176

177177
# If true, expires auth token on session timeout.
178178
# config.expire_auth_token_on_timeout = false

0 commit comments

Comments
 (0)