From 72f5c887236708189bf8cc86b60b932617c3c756 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 2 May 2019 04:06:23 +0200 Subject: [PATCH] move oauth configuration into untracked include --- .gitignore | 1 + getsc2clan | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..da8f6c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.blizzard.passwd.pl diff --git a/getsc2clan b/getsc2clan index b23d2ac..f3df754 100755 --- a/getsc2clan +++ b/getsc2clan @@ -12,9 +12,8 @@ my ($profileid, $clanmatch) = @ARGV; # clan host and name $profileid and $profileid =~ /\A\d+\z/ or die "Usage: $0 []\n"; -my $bliz = LWP::Authen::OAuth2->new( - client_id => '7f0f95ac9529474f854ee8d68a12c3e0', - client_secret => 'Kfa8n98UAaDo4brOeqxe9C2kJE9pqpSd', +my %auth = do './.blizzard.passwd.pl' or die "no auth setup: $!\n"; +my $bliz = LWP::Authen::OAuth2->new(%auth, token_endpoint => 'https://us.battle.net/oauth/token', request_required_params => [qw( client_id client_secret grant_type )], ); -- 2.30.0