| 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 oauth2; | 5 library oauth2; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 import 'dart:uri'; | 8 import 'dart:uri'; |
| 9 | 9 |
| 10 // TODO(nweiz): Make this a "package:" URL, or something nicer than this. | 10 // TODO(nweiz): Make this a "package:" URL, or something nicer than this. |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 log.message( | 207 log.message( |
| 208 'Pub needs your authorization to upload packages on your behalf.\n' | 208 'Pub needs your authorization to upload packages on your behalf.\n' |
| 209 'In a web browser, go to $authUrl\n' | 209 'In a web browser, go to $authUrl\n' |
| 210 'Then click "Allow access".\n\n' | 210 'Then click "Allow access".\n\n' |
| 211 'Waiting for your authorization...'); | 211 'Waiting for your authorization...'); |
| 212 | 212 |
| 213 return completer.future.transform((client) { | 213 return completer.future.transform((client) { |
| 214 log.message('Successfully authorized.\n'); | 214 log.message('Successfully authorized.\n'); |
| 215 return client; | 215 return client; |
| 216 }); | 216 }); |
| 217 } | 217 } |
| OLD | NEW |