2017-07-31 15:54:52 +02:00
|
|
|
function ConstantsService(i18nService) {
|
2016-10-25 04:16:47 +02:00
|
|
|
return {
|
2017-08-22 18:00:59 +02:00
|
|
|
baseUrlKey: 'baseUrl',
|
|
|
|
apiUrlKey: 'apiUrl',
|
|
|
|
identityUrlKey: 'identityUrl',
|
2016-10-25 04:16:47 +02:00
|
|
|
disableGaKey: 'disableGa',
|
2017-01-04 00:40:07 +01:00
|
|
|
disableAddLoginNotificationKey: 'disableAddLoginNotification',
|
2017-03-04 04:33:17 +01:00
|
|
|
disableContextMenuItemKey: 'disableContextMenuItem',
|
2017-07-21 16:54:41 +02:00
|
|
|
disableAutoTotpCopyKey: 'disableAutoTotpCopy',
|
2016-10-25 06:23:21 +02:00
|
|
|
lockOptionKey: 'lockOption',
|
2017-04-22 16:58:32 +02:00
|
|
|
lastActiveKey: 'lastActive',
|
|
|
|
encType: {
|
|
|
|
AesCbc256_B64: 0,
|
|
|
|
AesCbc128_HmacSha256_B64: 1,
|
|
|
|
AesCbc256_HmacSha256_B64: 2,
|
|
|
|
Rsa2048_OaepSha256_B64: 3,
|
2017-06-19 17:09:48 +02:00
|
|
|
Rsa2048_OaepSha1_B64: 4,
|
|
|
|
Rsa2048_OaepSha256_HmacSha256_B64: 5,
|
|
|
|
Rsa2048_OaepSha1_HmacSha256_B64: 6
|
2017-06-26 21:37:15 +02:00
|
|
|
},
|
|
|
|
twoFactorProvider: {
|
|
|
|
u2f: 4,
|
|
|
|
yubikey: 3,
|
|
|
|
duo: 2,
|
|
|
|
authenticator: 0,
|
|
|
|
email: 1,
|
|
|
|
remember: 5
|
|
|
|
},
|
|
|
|
twoFactorProviderInfo: [
|
|
|
|
{
|
|
|
|
type: 0,
|
2017-07-31 15:54:52 +02:00
|
|
|
name: i18nService.authenticatorAppTitle,
|
|
|
|
description: i18nService.authenticatorAppDesc,
|
2017-06-26 21:37:15 +02:00
|
|
|
active: true,
|
|
|
|
free: true,
|
|
|
|
displayOrder: 0,
|
|
|
|
priority: 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 3,
|
2017-07-31 15:54:52 +02:00
|
|
|
name: i18nService.yubiKeyTitle,
|
|
|
|
description: i18nService.yubiKeyDesc,
|
2017-06-26 21:37:15 +02:00
|
|
|
active: true,
|
|
|
|
displayOrder: 1,
|
|
|
|
priority: 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 2,
|
|
|
|
name: 'Duo',
|
2017-07-31 15:54:52 +02:00
|
|
|
description: i18nService.duoDesc,
|
2017-06-26 21:37:15 +02:00
|
|
|
active: true,
|
|
|
|
displayOrder: 2,
|
|
|
|
priority: 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 4,
|
2017-07-31 15:54:52 +02:00
|
|
|
name: i18nService.u2fTitle,
|
|
|
|
description: i18nService.u2fDesc,
|
2017-06-26 21:37:15 +02:00
|
|
|
active: true,
|
|
|
|
displayOrder: 3,
|
|
|
|
priority: 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 1,
|
2017-07-31 15:54:52 +02:00
|
|
|
name: i18nService.emailTitle,
|
|
|
|
description: i18nService.emailDesc,
|
2017-06-26 21:37:15 +02:00
|
|
|
active: true,
|
|
|
|
displayOrder: 4,
|
|
|
|
priority: 0
|
|
|
|
}
|
|
|
|
]
|
2016-10-25 04:16:47 +02:00
|
|
|
};
|
2017-07-14 21:34:05 +02:00
|
|
|
}
|