diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-10-01 00:54:22 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-10-01 00:54:22 +0900 |
commit | e499c1c39dbea505858874ee47436641df3d93d4 (patch) | |
tree | bce2333e86abfbdba7e55d15bb1fe8e432657832 /app/controllers/google_api/authorizations_controller.rb | |
parent | c30546f4aa073f44e97b49f47c57a9a89062c3c6 (diff) | |
download | gitlab-ce-e499c1c39dbea505858874ee47436641df3d93d4.tar.gz |
Replace reactive_cache by multipel sidekiq workers
Diffstat (limited to 'app/controllers/google_api/authorizations_controller.rb')
-rw-r--r-- | app/controllers/google_api/authorizations_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/google_api/authorizations_controller.rb b/app/controllers/google_api/authorizations_controller.rb index 4b315181b7d..00b0c128711 100644 --- a/app/controllers/google_api/authorizations_controller.rb +++ b/app/controllers/google_api/authorizations_controller.rb @@ -1,9 +1,9 @@ module GoogleApi class AuthorizationsController < ApplicationController def callback - session[GoogleApi::CloudPlatform::Client.token_in_session] = - GoogleApi::Authentication.new(nil, callback_google_api_authorizations_url) - .get_token(params[:code]) + session[GoogleApi::CloudPlatform::Client.session_key_for_token] = + GoogleApi::CloudPlatform::Client.new(nil, callback_google_api_authorizations_url) + .get_token(params[:code]) if params[:state] redirect_to params[:state] |