Skip to content

Commit 6fa2a16

Browse files
committed
Merge pull request #55 from dart-gde/dependency_udates
SafeHttpServer is no longer needed, updated dependencies
2 parents 777aa1a + 4af3ace commit 6fa2a16

File tree

5 files changed

+6
-173
lines changed

5 files changed

+6
-173
lines changed

example/oauth_example_compute_engine.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import "dart:async";
22
import "package:google_oauth2_client/google_oauth2_console.dart";
33
import "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

lib/src/console/oauth2_console_client/log.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
library log;
77

88
import 'dart:io';
9-
import 'dart:async';
109

1110
import 'utils.dart';
1211

lib/src/console/oauth2_console_client/oauth2.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import 'dart:core';
77

88
import 'dart:async';
99
import 'dart:convert';
10+
import 'dart:io';
1011

1112
import 'package:oauth2/oauth2.dart';
1213
import 'package:path/path.dart' as path;
@@ -16,7 +17,6 @@ import "package:json_web_token/json_web_token.dart";
1617
import 'http.dart';
1718
import 'io.dart';
1819
import 'log.dart' as log;
19-
import 'safe_http_server.dart';
2020
import 'utils.dart';
2121

2222
export '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

lib/src/console/oauth2_console_client/safe_http_server.dart

Lines changed: 0 additions & 166 deletions
This file was deleted.

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ authors:
77
description: Library to use for Google OAuth2 authentication / Client-side flow
88
homepage: https://github.com/dart-gde/dart-google-oauth2-library
99
environment:
10-
sdk: '>=1.2.0 <2.0.0'
10+
sdk: '>=1.3.0 <2.0.0'
1111
dependencies:
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"
1717
dev_dependencies:
1818
browser: '>=0.9.0 <0.11.0'
1919
hop: '>=0.30.3 <0.31.0'

0 commit comments

Comments
 (0)