cookie secret: give helper command for generating a secret
commit671f00e60eedc0df4796e1f81a9f410298d410fe
authorJehiah Czebotar <jehiah@gmail.com>
dateThu 23 Jun 2016, 09:42 (10 years ago)
parent3bba24a
README.md+2
@@ -149,6 +149,8 @@ To authorize by email domain use `--email-domain=yourcompany.com`. To authorize
149149
150150`oauth2_proxy` can be configured via [config file](#config-file), [command line options](#command-line-options) or [environment variables](#environment-variables).
151151
152+To generate a strong cookie secret use `python -c 'import os,base64; print base64.b64encode(os.urandom(16))'`
153+
152154### Config File
153155
154156An example [oauth2_proxy.cfg](contrib/oauth2_proxy.cfg.example) config file is in the contrib directory. It can be used by specifying `-config=/etc/oauth2_proxy.cfg`