File tree Expand file tree Collapse file tree 5 files changed +6
-173
lines changed
lib/src/console/oauth2_console_client Expand file tree Collapse file tree 5 files changed +6
-173
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import "dart:async";
22import "package:google_oauth2_client/google_oauth2_console.dart" ;
33import "package:http/http.dart" as http;
44
5- void main (args) {
5+ void main (List < String > args) {
66 print ("project = ${args [0 ]}" );
77 ComputeOAuth2Console computeEngineClient = new ComputeOAuth2Console (args[0 ]);
88
Original file line number Diff line number Diff line change 66library log;
77
88import 'dart:io' ;
9- import 'dart:async' ;
109
1110import 'utils.dart' ;
1211
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import 'dart:core';
77
88import 'dart:async' ;
99import 'dart:convert' ;
10+ import 'dart:io' ;
1011
1112import 'package:oauth2/oauth2.dart' ;
1213import 'package:path/path.dart' as path;
@@ -16,7 +17,6 @@ import "package:json_web_token/json_web_token.dart";
1617import 'http.dart' ;
1718import 'io.dart' ;
1819import 'log.dart' as log;
19- import 'safe_http_server.dart' ;
2020import 'utils.dart' ;
2121
2222export 'package:oauth2/oauth2.dart' ;
@@ -191,7 +191,7 @@ class OAuth2Console {
191191 // Spin up a one-shot HTTP server to receive the authorization code from the
192192 // Google OAuth2 server via redirect. This server will close itself as soon as
193193 // the code is received.
194- return SafeHttpServer .bind ('127.0.0.1' , authorizationResponseServerPort).then ((server) {
194+ return HttpServer .bind ('127.0.0.1' , authorizationResponseServerPort).then ((server) {
195195 var authUrl = grant.getAuthorizationUrl (
196196 Uri .parse ('http://localhost:${server .port }' ), scopes: _scopes);
197197
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ authors:
77description : Library to use for Google OAuth2 authentication / Client-side flow
88homepage : https://github.com/dart-gde/dart-google-oauth2-library
99environment :
10- sdk : ' >=1.2 .0 <2.0.0'
10+ sdk : ' >=1.3 .0 <2.0.0'
1111dependencies :
1212 crypto : ' >=0.9.0 <0.10.0'
13- http : ' >=0.9.0 <0.10.0'
13+ http : ' >=0.9.0 <0.12.0'
14+ json_web_token : ' >=0.1.1 <0.2.0'
1415 oauth2 : ' >=0.9.0 <0.10.0'
1516 path : ' >=1.0.0 <1.2.0'
16- json_web_token : " >=0.1.1 <0.2.0"
1717dev_dependencies :
1818 browser : ' >=0.9.0 <0.11.0'
1919 hop : ' >=0.30.3 <0.31.0'
You can’t perform that action at this time.
0 commit comments