Skip to content

Commit

Permalink
#22 Google OAuth provider - rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed Jan 11, 2024
1 parent badaeea commit f7b5650
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/redmine_oauth_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def oauth_callback
email = user_info['email']
when 'Google'
token = oauth_client.auth_code.get_token(params['code'], redirect_uri: oauth_callback_url)
userinfo_response = token.get('https://openidconnect.googleapis.com/v1/userinfo', headers: { 'Accept' => 'application/json' })
userinfo_response = token.get('https://openidconnect.googleapis.com/v1/userinfo',
headers: { 'Accept' => 'application/json' })
user_info = JSON.parse(userinfo_response.body)
user_info['login'] = user_info['email']
email = user_info['email']
Expand Down

0 comments on commit f7b5650

Please sign in to comment.