mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 05:21:50 +08:00
FEATURE: Increase default DiscourseConnect session length (#26261)
For some identity providers, 10 minutes isn't much time for a user to complete authentication/registration on the identity provider. Increasing the default to 30 minutes should help in those situations. The nonce is still tied to a single browser session, so there is no material impact on security.
This commit is contained in:
parent
16b377bc3f
commit
aba0df7cf7
|
@ -59,7 +59,7 @@ class DiscourseConnectBase
|
|||
]
|
||||
|
||||
def self.nonce_expiry_time
|
||||
@nonce_expiry_time ||= 10.minutes
|
||||
@nonce_expiry_time ||= 30.minutes
|
||||
end
|
||||
|
||||
def self.nonce_expiry_time=(v)
|
||||
|
|
Loading…
Reference in New Issue
Block a user