You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/goauth
+19-16Lines changed: 19 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,11 @@
1
1
#!perl
2
2
3
-
use strict; use warnings; ## required because I can't work out how to get percritic to use my modern config
3
+
use strict;
4
+
use warnings; ## required because I can't work out how to get percritic to use my modern config
5
+
4
6
packagegoauth;
5
7
6
-
# ABSTRACT: CLI tool with mini http server for negotiating Google OAuth2 Authorisation access tokens that allow offline access to Google API Services on behalf of the user.
8
+
# ABSTRACT: CLI tool with mini http server for negotiating Google OAuth2 Authorisation access tokens that allow offline access to Google API Services on behalf of the user.
7
9
8
10
=pod
9
11
@@ -90,9 +92,9 @@ else
90
92
if ( -e$filename )
91
93
{
92
94
say"File $filename exists";
93
-
input_if_not_exists( ['gapi/client_id', 'gapi/client_secret', 'gapi/scopes'] ); ## this potentially allows mreging with a json file with data external
94
-
## to the app or to augment missing scope from file generated from
95
-
## earlier versions of goauth from other libs
95
+
input_if_not_exists( ['gapi/client_id', 'gapi/client_secret', 'gapi/scopes'] ); ## this potentially allows mreging with a json file with data external
96
+
## to the app or to augment missing scope from file generated from
97
+
## earlier versions of goauth from other libs
96
98
runserver();
97
99
}
98
100
else
@@ -114,7 +116,8 @@ sub setup
114
116
115
117
$oauth->{ client_secret } = _stdin() || croak( 'client secret is required and has no default' );
116
118
117
-
print'scopes ( space sep list - see https://developers.google.com/identity/protocols/googlescopes ): default is - email profile https://www.googleapis.com/auth/plus.profile.emails.read '
119
+
print
120
+
'scopes ( space sep list - see https://developers.google.com/identity/protocols/googlescopes ): default is - email profile https://www.googleapis.com/auth/plus.profile.emails.read '
0 commit comments