chore: add docs how to obtain bearer token (#6328)

* chore: add docs how to obtain bearer token

* Added configurable ttl to settings

---------

Co-authored-by: SamTV12345 <40429738+samtv12345@users.noreply.github.com>
This commit is contained in:
webzwo0i 2024-04-29 17:04:00 +02:00 committed by GitHub
parent 70a536cad1
commit 8a76d2c680
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 39 additions and 9 deletions

View file

@ -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'],

View file

@ -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.
*