From c46e695cdd2b1fa57d8be13f62cb546a8ce4bcf1 Mon Sep 17 00:00:00 2001 From: Martin Linkhorst Date: Fri, 26 Sep 2014 16:16:12 +0200 Subject: [PATCH 1/2] temporarily enable permanent storage of access token --- lib/open_project/openid_connect/engine.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/open_project/openid_connect/engine.rb b/lib/open_project/openid_connect/engine.rb index 3d9c8d2b75..d3e0bb5366 100644 --- a/lib/open_project/openid_connect/engine.rb +++ b/lib/open_project/openid_connect/engine.rb @@ -60,7 +60,9 @@ module OpenProject::OpenIDConnect # for changing the setting at runtime, e.g. for testing, we need to evaluate this each time def self.store_access_token? - OpenProject::Configuration['omniauth_store_access_token_in_cookie'] + # TODO: we might this to be configurable, for now we always enable it + # OpenProject::Configuration['omniauth_store_access_token_in_cookie'] + true end end From ed24b5e241c952f8cc6645475dea99bd95b22f7c Mon Sep 17 00:00:00 2001 From: Markus Kahl Date: Fri, 26 Sep 2014 16:21:46 +0200 Subject: [PATCH 2/2] you forgot a there --- lib/open_project/openid_connect/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/open_project/openid_connect/engine.rb b/lib/open_project/openid_connect/engine.rb index d3e0bb5366..84136c2b8c 100644 --- a/lib/open_project/openid_connect/engine.rb +++ b/lib/open_project/openid_connect/engine.rb @@ -60,7 +60,7 @@ module OpenProject::OpenIDConnect # for changing the setting at runtime, e.g. for testing, we need to evaluate this each time def self.store_access_token? - # TODO: we might this to be configurable, for now we always enable it + # TODO: we might want this to be configurable, for now we always enable it # OpenProject::Configuration['omniauth_store_access_token_in_cookie'] true end