From a8d8e279b94ed3bb3d0c5704c46893d4900a6ea0 Mon Sep 17 00:00:00 2001 From: Bobby McDonald Date: Tue, 11 Aug 2020 11:15:14 -0400 Subject: [PATCH] Preparing for 1.7.0 release --- lib/omniauth-oauth2/version.rb | 2 +- lib/omniauth/strategies/oauth2.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/omniauth-oauth2/version.rb b/lib/omniauth-oauth2/version.rb index c2c7281..a6db730 100644 --- a/lib/omniauth-oauth2/version.rb +++ b/lib/omniauth-oauth2/version.rb @@ -1,5 +1,5 @@ module OmniAuth module OAuth2 - VERSION = "1.6.0".freeze + VERSION = "1.7.0".freeze end end diff --git a/lib/omniauth/strategies/oauth2.rb b/lib/omniauth/strategies/oauth2.rb index 0c50bd6..0803402 100644 --- a/lib/omniauth/strategies/oauth2.rb +++ b/lib/omniauth/strategies/oauth2.rb @@ -59,7 +59,7 @@ def request_phase redirect client.auth_code.authorize_url({:redirect_uri => callback_url}.merge(authorize_params)) end - def authorize_params# rubocop:disable Metrics/AbcSize, Metrics/MethodLength + def authorize_params # rubocop:disable Metrics/AbcSize, Metrics/MethodLength options.authorize_params[:state] = SecureRandom.hex(24) if OmniAuth.config.test_mode