Skip to content

Commit 35b432f

Browse files
author
Taylor Hughes
committed
Make it obvious to anyone reading copy-pasted example code that the cookie secret is not suitable for production use.
1 parent 764b443 commit 35b432f

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

demos/auth/authdemo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self):
3434
(r"/auth/logout", LogoutHandler),
3535
]
3636
settings = dict(
37-
cookie_secret="32oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=",
37+
cookie_secret="__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__",
3838
login_url="/auth/login",
3939
)
4040
tornado.web.Application.__init__(self, handlers, **settings)

demos/blog/blog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self):
5151
static_path=os.path.join(os.path.dirname(__file__), "static"),
5252
ui_modules={"Entry": EntryModule},
5353
xsrf_cookies=True,
54-
cookie_secret="11oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=",
54+
cookie_secret="__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__",
5555
login_url="/auth/login",
5656
autoescape=None,
5757
)

demos/chat/chatdemo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(self):
3838
(r"/a/message/updates", MessageUpdatesHandler),
3939
]
4040
settings = dict(
41-
cookie_secret="43oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=",
41+
cookie_secret="__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__",
4242
login_url="/auth/login",
4343
template_path=os.path.join(os.path.dirname(__file__), "templates"),
4444
static_path=os.path.join(os.path.dirname(__file__), "static"),

demos/facebook/facebook.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self):
3939
(r"/auth/logout", AuthLogoutHandler),
4040
]
4141
settings = dict(
42-
cookie_secret="12oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=",
42+
cookie_secret="__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__",
4343
login_url="/auth/login",
4444
template_path=os.path.join(os.path.dirname(__file__), "templates"),
4545
static_path=os.path.join(os.path.dirname(__file__), "static"),

demos/websocket/chatdemo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self):
3939
(r"/chatsocket", ChatSocketHandler),
4040
]
4141
settings = dict(
42-
cookie_secret="43oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=",
42+
cookie_secret="__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__",
4343
template_path=os.path.join(os.path.dirname(__file__), "templates"),
4444
static_path=os.path.join(os.path.dirname(__file__), "static"),
4545
xsrf_cookies=True,

0 commit comments

Comments
 (0)