[pyramid/misc] remove now useless warning about missing pyramid.ini

authorLaurent Peuch <cortex@worlddomination.be>
changeset6007d9c0a933
branchdefault
phasedraft
hiddenno
parent revision#a4d465a3e77d fix(ci): manually remove the .tox/doc directory
child revision<not specified>
files modified by this revision
cubicweb/pyramid/auth.py
# HG changeset patch
# User Laurent Peuch <cortex@worlddomination.be>
# Date 1557914820 -7200
# Wed May 15 12:07:00 2019 +0200
# Node ID 6007d9c0a933f18c35a68471f52de9da334a4383
# Parent a4d465a3e77d07cf6a79c121c10b2d6484cd7468
[pyramid/misc] remove now useless warning about missing pyramid.ini

diff --git a/cubicweb/pyramid/auth.py b/cubicweb/pyramid/auth.py
@@ -196,32 +196,10 @@
1 
2          session_secret = settings.get(
3              session_prefix + 'secret', 'notsosecret')
4          persistent_secret = settings.get(
5              persistent_prefix + 'secret', 'notsosecret')
6 -        if ('notsosecret' in (session_secret, persistent_secret)
7 -                and config.registry['cubicweb.config'].mode != 'test'):
8 -            warnings.warn('''
9 -
10 -                !! SECURITY WARNING !!
11 -
12 -                The authentication cookies are signed with a static secret key.
13 -
14 -                Configure the following options in your pyramid.ini file:
15 -
16 -                - cubicweb.auth.authtkt.session.secret
17 -                - cubicweb.auth.authtkt.persistent.secret
18 -
19 -                YOU SHOULD STOP THIS INSTANCE unless your really know what you
20 -                are doing !!
21 -
22 -                Please refer to to cubicweb-pyramid documentation on how to
23 -                write this pyramid.ini file:
24 -                https://cubicweb.readthedocs.io/en/latest/book/pyramid/settings/#pyramid-settings-file
25 -                Without it authentication WON'T work.
26 -
27 -            ''')
28 
29          policies.append(
30              CWAuthTktAuthenticationPolicy(
31                  session_secret, False,
32                  defaults={