move oauth configuration into untracked include
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 2 May 2019 02:06:23 +0000 (04:06 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 2 May 2019 02:06:23 +0000 (04:06 +0200)
.gitignore [new file with mode: 0644]
getsc2clan

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..da8f6c3
--- /dev/null
@@ -0,0 +1 @@
+/.blizzard.passwd.pl
index b23d2ac4f2f17443db86924791e78c3266333181..f3df7542af71e3bb3f11ffc2ea85658563851f24 100755 (executable)
@@ -12,9 +12,8 @@ my ($profileid, $clanmatch) = @ARGV;  # clan host and name
 $profileid and $profileid =~ /\A\d+\z/
        or die "Usage: $0 <profile id> [<clan name>]\n";
 
 $profileid and $profileid =~ /\A\d+\z/
        or die "Usage: $0 <profile id> [<clan name>]\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 )],
 );
        token_endpoint          => 'https://us.battle.net/oauth/token',
        request_required_params => [qw( client_id client_secret grant_type )],
 );