Update cookie generation to match base64 encoding
Current code is using URLEncoding but example was using the
standard RFC 4648 encoding. Switch to using the URL
encoding in the example as well.
commitf4321c4b45fb8a9fc67ff521dd2fd1caefbf1463
authorChristian Svensson <blue@cmd.nu>
dateThu 20 Jul 2017, 13:28 (9 years ago)
parent3c51c91
README.md+1−1
@@ -147,7 +147,7 @@ To authorize by email domain use `--email-domain=yourcompany.com`. To authorize
147147
148148`oauth2_proxy` can be configured via [config file](#config-file), [command line options](#command-line-options) or [environment variables](#environment-variables).
149149
150−To generate a strong cookie secret use `python -c 'import os,base64; print base64.b64encode(os.urandom(16))'`
150+To generate a strong cookie secret use `python -c 'import os,base64; print base64.urlsafe_b64encode(os.urandom(16))'`
151151
152152### Config File
153153