Commit b9f775db authored by Laurent Peuch's avatar Laurent Peuch
Browse files

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

parent 4208acf66836
Pipeline #39795 passed with stages
in 36 minutes and 47 seconds
......@@ -88,7 +88,6 @@ For the record, regarding authentication:
import datetime
import logging
import warnings
from zope.interface import implementer
......@@ -198,28 +197,6 @@ def includeme(config):
session_prefix + 'secret', 'notsosecret')
persistent_secret = settings.get(
persistent_prefix + 'secret', 'notsosecret')
if ('notsosecret' in (session_secret, persistent_secret)
and config.registry['cubicweb.config'].mode != 'test'):
warnings.warn('''
!! SECURITY WARNING !!
The authentication cookies are signed with a static secret key.
Configure the following options in your pyramid.ini file:
- cubicweb.auth.authtkt.session.secret
- cubicweb.auth.authtkt.persistent.secret
YOU SHOULD STOP THIS INSTANCE unless your really know what you
are doing !!
Please refer to to cubicweb-pyramid documentation on how to
write this pyramid.ini file:
https://cubicweb.readthedocs.io/en/latest/book/pyramid/settings/#pyramid-settings-file
Without it authentication WON'T work.
''')
policies.append(
CWAuthTktAuthenticationPolicy(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment