| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library pub.oauth2; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 import 'dart:io'; | 6 import 'dart:io'; |
| 9 | 7 |
| 10 import 'package:oauth2/oauth2.dart'; | 8 import 'package:oauth2/oauth2.dart'; |
| 11 import 'package:path/path.dart' as path; | 9 import 'package:path/path.dart' as path; |
| 12 import 'package:shelf/shelf.dart' as shelf; | 10 import 'package:shelf/shelf.dart' as shelf; |
| 13 import 'package:shelf/shelf_io.dart' as shelf_io; | 11 import 'package:shelf/shelf_io.dart' as shelf_io; |
| 14 | 12 |
| 15 import 'http.dart'; | 13 import 'http.dart'; |
| 16 import 'io.dart'; | 14 import 'io.dart'; |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 'In a web browser, go to $authUrl\n' | 210 'In a web browser, go to $authUrl\n' |
| 213 'Then click "Allow access".\n\n' | 211 'Then click "Allow access".\n\n' |
| 214 'Waiting for your authorization...'); | 212 'Waiting for your authorization...'); |
| 215 }); | 213 }); |
| 216 | 214 |
| 217 return completer.future.then((client) { | 215 return completer.future.then((client) { |
| 218 log.message('Successfully authorized.\n'); | 216 log.message('Successfully authorized.\n'); |
| 219 return client; | 217 return client; |
| 220 }); | 218 }); |
| 221 } | 219 } |
| OLD | NEW |