From 2e5c5f2864a40aa696162637a1611b5b22534024 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 30 Apr 2019 22:58:49 +0200 Subject: [PATCH] scope parameter not needed to request oauth2 token --- widget.pl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/widget.pl b/widget.pl index 1a4e5b5..8f118d5 100644 --- a/widget.pl +++ b/widget.pl @@ -15,12 +15,9 @@ my $bliz = LWP::Authen::OAuth2->new( client_id => '7f0f95ac9529474f854ee8d68a12c3e0', client_secret => 'Kfa8n98UAaDo4brOeqxe9C2kJE9pqpSd', token_endpoint => 'https://us.battle.net/oauth/token', - request_required_params => [qw( client_id client_secret grant_type scope )], -); -$bliz->request_tokens( - scope => 'account.public', - grant_type => 'client_credentials', + request_required_params => [qw( client_id client_secret grant_type )], ); +$bliz->request_tokens(grant_type => 'client_credentials'); sub blizget { my $args = join('/', @_); -- 2.30.0