scope parameter not needed to request oauth2 token
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 30 Apr 2019 20:58:49 +0000 (22:58 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 30 Apr 2019 20:58:49 +0000 (22:58 +0200)
widget.pl

index 1a4e5b5d3fe577171774d9b35718fd58688bb134..8f118d51ff325dc377b5dabcba39b9a278a9eea0 100644 (file)
--- 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('/', @_);