mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-04 22:27:10 -04:00
Added configurable ttl to settings
This commit is contained in:
parent
e9227ca91a
commit
00ce93ef51
4 changed files with 34 additions and 8 deletions
|
@ -669,5 +669,16 @@
|
|||
"redirect_uris": ["${USER_REDIRECT:http://localhost:9001/}"]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
/* Set the time to live for the tokens
|
||||
This is the time of seconds a user is logged into Etherpad
|
||||
"ttl": {
|
||||
"AccessToken": 3600,
|
||||
"AuthorizationCode": 600,
|
||||
"ClientCredentials": 3600,
|
||||
"IdToken": 3600,
|
||||
"RefreshToken": 86400
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
|
|
@ -671,4 +671,15 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
|
||||
/* Set the time to live for the tokens
|
||||
This is the time of seconds a user is logged into Etherpad
|
||||
"ttl": {
|
||||
"AccessToken": 3600,
|
||||
"AuthorizationCode": 600,
|
||||
"ClientCredentials": 3600,
|
||||
"IdToken": 3600,
|
||||
"RefreshToken": 86400
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
|
|
@ -47,13 +47,7 @@ const configuration: Configuration = {
|
|||
} as Account
|
||||
}
|
||||
},
|
||||
ttl:{
|
||||
AccessToken: 1 * 60 * 60, // 1 hour in seconds
|
||||
AuthorizationCode: 10 * 60, // 10 minutes in seconds
|
||||
ClientCredentials: 1 * 60 * 60, // 1 hour in seconds
|
||||
IdToken: 1 * 60 * 60, // 1 hour in seconds
|
||||
RefreshToken: 1 * 24 * 60 * 60, // 1 day in seconds
|
||||
},
|
||||
ttl: settings.ttl,
|
||||
claims: {
|
||||
openid: ['sub'],
|
||||
email: ['email'],
|
||||
|
|
|
@ -98,6 +98,16 @@ exports.title = 'Etherpad';
|
|||
*/
|
||||
exports.favicon = null;
|
||||
|
||||
exports.ttl = {
|
||||
AccessToken: 1 * 60 * 60, // 1 hour in seconds
|
||||
AuthorizationCode: 10 * 60, // 10 minutes in seconds
|
||||
ClientCredentials: 1 * 60 * 60, // 1 hour in seconds
|
||||
IdToken: 1 * 60 * 60, // 1 hour in seconds
|
||||
RefreshToken: 1 * 24 * 60 * 60, // 1 day in seconds
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Skin name.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue