From: Mischa POSLAWSKY Date: Tue, 30 Apr 2019 20:58:49 +0000 (+0200) Subject: scope parameter not needed to request oauth2 token X-Git-Tag: v0.1~4 X-Git-Url: http://git.shiar.nl/sc2-widget/commitdiff_plain/2e5c5f2864a40aa696162637a1611b5b22534024 scope parameter not needed to request oauth2 token --- 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('/', @_);