From 85adb94a090b4bc87eab72193e7066e476da253e Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 25 Aug 2015 11:56:53 +0800 Subject: Bug 1180733 - "An invalid state parameter was passed to the GitHub OAuth2 callback" error when logging in with github --- extensions/GitHubAuth/lib/Client.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/GitHubAuth/lib/Client.pm') diff --git a/extensions/GitHubAuth/lib/Client.pm b/extensions/GitHubAuth/lib/Client.pm index bcd5e462e..338a5b639 100644 --- a/extensions/GitHubAuth/lib/Client.pm +++ b/extensions/GitHubAuth/lib/Client.pm @@ -60,7 +60,7 @@ sub get_email_key { my $digest = Digest->new(DIGEST_HASH); $digest->add($email); $digest->add(remote_ip()); - $digest->add($cgi->cookie('Bugzilla_github_token') // ''); + $digest->add($cgi->cookie('Bugzilla_github_token') // Bugzilla->request_cache->{github_token} // ''); $digest->add(Bugzilla->localconfig->{site_wide_secret}); return $digest->hexdigest; } @@ -85,7 +85,7 @@ sub get_state { my $digest = Digest->new(DIGEST_HASH); $digest->add($sorted_target->as_string); $digest->add(remote_ip()); - $digest->add($cgi->cookie('Bugzilla_github_token') // ''); + $digest->add($cgi->cookie('Bugzilla_github_token') // Bugzilla->request_cache->{github_token} // ''); $digest->add(Bugzilla->localconfig->{site_wide_secret}); return $digest->hexdigest; } -- cgit v1.2.3-24-g4f1b