author | Christophe de Vienne <christophe@unlish.com> |
Thu, 23 Oct 2014 17:30:15 +0200 | |
changeset 11643 | 63d2c01fcb94 |
parent 11636 | 2babe3694bed |
child 11673 | c3a583e38360 |
permissions | -rw-r--r-- |
11635
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
1 |
from logilab.common.configuration import REQUIRED |
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
2 |
|
11634
fa614537e5ee
Add a CWSession entity.
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
3 |
import cubicweb.schema |
fa614537e5ee
Add a CWSession entity.
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
4 |
|
fa614537e5ee
Add a CWSession entity.
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
5 |
cubicweb.schema.INTERNAL_TYPES.add('CWSession') |
11635
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
6 |
|
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
7 |
options = ( |
11636
2babe3694bed
Add the 'pyramid-auth-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11635
diff
changeset
|
8 |
('pyramid-auth-secret', { |
2babe3694bed
Add the 'pyramid-auth-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11635
diff
changeset
|
9 |
'type': 'string', |
2babe3694bed
Add the 'pyramid-auth-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11635
diff
changeset
|
10 |
'default': REQUIRED, |
2babe3694bed
Add the 'pyramid-auth-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11635
diff
changeset
|
11 |
'help': 'Secret phrase to encrypt the authentication cookie', |
2babe3694bed
Add the 'pyramid-auth-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11635
diff
changeset
|
12 |
'group': 'pyramid', |
2babe3694bed
Add the 'pyramid-auth-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11635
diff
changeset
|
13 |
'level': 3 |
2babe3694bed
Add the 'pyramid-auth-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11635
diff
changeset
|
14 |
}), |
11635
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
15 |
('pyramid-session-secret', { |
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
16 |
'type': 'string', |
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
17 |
'default': REQUIRED, |
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
18 |
'help': 'Secret phrase to sign the session cookie', |
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
19 |
'group': 'pyramid', |
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
20 |
'level': 3 |
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
21 |
}), |
fc4ecec311f4
Add the 'pyramid-session-secret' option to all-in-one.conf
Christophe de Vienne <christophe@unlish.com>
parents:
11634
diff
changeset
|
22 |
) |