Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
f08ff1a15f06
Commit
b9f775db
authored
May 15, 2019
by
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
cubicweb/pyramid/auth.py
View file @
f08ff1a1
...
...
@@ -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
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment