From f4321c4b45fb8a9fc67ff521dd2fd1caefbf1463 Mon Sep 17 00:00:00 2001 From: Christian Svensson Date: Thu, 20 Jul 2017 13:28:41 +0200 Subject: [PATCH] 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 85fd920..eb1ef10 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ To authorize by email domain use `--email-domain=yourcompany.com`. To authorize `oauth2_proxy` can be configured via [config file](#config-file), [command line options](#command-line-options) or [environment variables](#environment-variables). -To generate a strong cookie secret use `python -c 'import os,base64; print base64.b64encode(os.urandom(16))'` +To generate a strong cookie secret use `python -c 'import os,base64; print base64.urlsafe_b64encode(os.urandom(16))'` ### Config File