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.authorization_code_grant; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 | 6 |
9 import 'package:http/http.dart' as http; | 7 import 'package:http/http.dart' as http; |
10 | 8 |
11 import 'client.dart'; | 9 import 'client.dart'; |
12 import 'authorization_exception.dart'; | 10 import 'authorization_exception.dart'; |
13 import 'handle_access_token_response.dart'; | 11 import 'handle_access_token_response.dart'; |
14 import 'utils.dart'; | 12 import 'utils.dart'; |
15 | 13 |
16 /// A class for obtaining credentials via an [authorization code grant][]. | 14 /// A class for obtaining credentials via an [authorization code grant][]. |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 // [AuthorizationCodeGrant.handleAuthorizationResponse] or | 296 // [AuthorizationCodeGrant.handleAuthorizationResponse] or |
299 // [AuthorizationCodeGrant.handleAuthorizationCode] have been called. | 297 // [AuthorizationCodeGrant.handleAuthorizationCode] have been called. |
300 static const finished = const _State("finished"); | 298 static const finished = const _State("finished"); |
301 | 299 |
302 final String _name; | 300 final String _name; |
303 | 301 |
304 const _State(this._name); | 302 const _State(this._name); |
305 | 303 |
306 String toString() => _name; | 304 String toString() => _name; |
307 } | 305 } |
OLD | NEW |