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:async'; | 7 import 'dart:async'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 import 'dart:uri'; | 9 import 'dart:uri'; |
10 | 10 |
11 // TODO(nweiz): Make this a "package:" URL, or something nicer than this. | 11 // TODO(nweiz): Make this a "package:" URL, or something nicer than this. |
12 import '../../pkg/oauth2/lib/oauth2.dart'; | 12 import '../../pkg/oauth2/lib/oauth2.dart'; |
13 import '../../pkg/path/lib/path.dart' as path; | 13 import '../../pkg/pathos/lib/path.dart' as path; |
14 | 14 |
15 import 'http.dart'; | 15 import 'http.dart'; |
16 import 'io.dart'; | 16 import 'io.dart'; |
17 import 'log.dart' as log; | 17 import 'log.dart' as log; |
18 import 'system_cache.dart'; | 18 import 'system_cache.dart'; |
19 import 'utils.dart'; | 19 import 'utils.dart'; |
20 | 20 |
21 export '../../pkg/oauth2/lib/oauth2.dart'; | 21 export '../../pkg/oauth2/lib/oauth2.dart'; |
22 | 22 |
23 /// The pub client's OAuth2 identifier. | 23 /// The pub client's OAuth2 identifier. |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 response.statusCode = 404; | 198 response.statusCode = 404; |
199 response.close(); | 199 response.close(); |
200 } | 200 } |
201 }); | 201 }); |
202 }) | 202 }) |
203 .then((client) { | 203 .then((client) { |
204 log.message('Successfully authorized.\n'); | 204 log.message('Successfully authorized.\n'); |
205 return client; | 205 return client; |
206 }); | 206 }); |
207 } | 207 } |
OLD | NEW |