Skip to content

Commit 6ac42d7

Browse files
authored
Use package:vendor to vendor package:tar and package:oauth2 (#3638)
1 parent 817fcf1 commit 6ac42d7

39 files changed

+2132
-11
lines changed

lib/src/io.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ import 'package:http_multi_server/http_multi_server.dart';
1515
import 'package:meta/meta.dart';
1616
import 'package:path/path.dart' as path;
1717
import 'package:pool/pool.dart';
18+
// ignore: prefer_relative_imports
19+
import 'package:pub/src/third_party/tar/lib/tar.dart';
1820
import 'package:stack_trace/stack_trace.dart';
1921

2022
import 'error_group.dart';
2123
import 'exceptions.dart';
2224
import 'exit_codes.dart' as exit_codes;
2325
import 'log.dart' as log;
24-
import 'third_party/tar/tar.dart';
2526
import 'utils.dart';
2627

2728
export 'package:http/http.dart' show ByteStream;

lib/src/oauth2.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ import 'dart:io';
88
import 'package:collection/collection.dart' show IterableExtension;
99
import 'package:http/http.dart' as http;
1010
import 'package:http/retry.dart';
11-
import 'package:oauth2/oauth2.dart';
1211
import 'package:path/path.dart' as path;
12+
// ignore: prefer_relative_imports
13+
import 'package:pub/src/third_party/oauth2/lib/oauth2.dart';
1314
import 'package:shelf/shelf.dart' as shelf;
1415
import 'package:shelf/shelf_io.dart' as shelf_io;
1516

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# 2.0.1
2+
3+
* Handle `expires_in` when encoded as string.
4+
* Populate the pubspec `repository` field.
5+
* Increase the minimum Dart SDK to `2.17.0`.
6+
7+
# 2.0.0
8+
9+
* Migrate to null safety.
10+
11+
# 1.6.3
12+
13+
* Added optional `codeVerifier` parameter to `AuthorizationCodeGrant` constructor.
14+
15+
# 1.6.1
16+
17+
* Added fix to make sure that credentials are only refreshed once when multiple calls are made.
18+
19+
# 1.6.0
20+
21+
* Added PKCE support to `AuthorizationCodeGrant`.
22+
23+
# 1.5.0
24+
25+
* Added support for `clientCredentialsGrant`.
26+
27+
# 1.4.0
28+
29+
* OpenID's id_token treated.
30+
31+
# 1.3.0
32+
33+
* Added `onCredentialsRefreshed` option when creating `Client` objects.
34+
35+
# 1.2.3
36+
37+
* Support the latest `package:http` release.
38+
39+
# 1.2.2
40+
41+
* Allow the stable 2.0 SDK.
42+
43+
# 1.2.1
44+
45+
* Updated SDK version to 2.0.0-dev.17.0
46+
47+
# 1.2.0
48+
49+
* Add a `getParameter()` parameter to `new AuthorizationCodeGrant()`, `new
50+
Credentials()`, and `resourceOwnerPasswordGrant()`. This controls how the
51+
authorization server's response is parsed for servers that don't provide the
52+
standard JSON response.
53+
54+
# 1.1.1
55+
56+
* `resourceOwnerPasswordGrant()` now properly uses its HTTP client for requests
57+
made by the OAuth2 client it returns.
58+
59+
# 1.1.0
60+
61+
* Add a `delimiter` parameter to `new AuthorizationCodeGrant()`, `new
62+
Credentials()`, and `resourceOwnerPasswordGrant()`. This controls the
63+
delimiter between scopes, which some authorization servers require to be
64+
different values than the specified `' '`.
65+
66+
# 1.0.2
67+
68+
* Fix all strong-mode warnings.
69+
70+
* Support `crypto` 1.0.0.
71+
72+
* Support `http_parser` 3.0.0.
73+
74+
# 1.0.1
75+
76+
* Support `http_parser` 2.0.0.
77+
78+
# 1.0.0
79+
80+
## Breaking changes
81+
82+
* Requests that use client authentication, such as the
83+
`AuthorizationCodeGrant`'s access token request and `Credentials`' refresh
84+
request, now use HTTP Basic authentication by default. This form of
85+
authentication is strongly recommended by the OAuth 2.0 spec. The new
86+
`basicAuth` parameter may be set to `false` to force form-based authentication
87+
for servers that require it.
88+
89+
* `new AuthorizationCodeGrant()` now takes `secret` as an optional named
90+
argument rather than a required argument. This matches the OAuth 2.0 spec,
91+
which says that a client secret is only required for confidential clients.
92+
93+
* `new Client()` and `Credentials.refresh()` now take both `identifier` and
94+
`secret` as optional named arguments rather than required arguments. This
95+
matches the OAuth 2.0 spec, which says that the server may choose not to
96+
require client authentication for some flows.
97+
98+
* `new Credentials()` now takes named arguments rather than optional positional
99+
arguments.
100+
101+
## Non-breaking changes
102+
103+
* Added a `resourceOwnerPasswordGrant` method.
104+
105+
* The `scopes` argument to `AuthorizationCodeGrant.getAuthorizationUrl()` and
106+
`new Credentials()` and the `newScopes` argument to `Credentials.refresh` now
107+
take an `Iterable` rather than just a `List`.
108+
109+
* The `scopes` argument to `AuthorizationCodeGrant.getAuthorizationUrl()` now
110+
defaults to `null` rather than `const []`.
111+
112+
# 0.9.3
113+
114+
* Update the `http` dependency.
115+
116+
* Since `http` 0.11.0 now works in non-`dart:io` contexts, `oauth2` does as
117+
well.
118+
119+
# 0.9.2
120+
121+
* Expand the dependency on the HTTP package to include 0.10.x.
122+
123+
* Add a README file.

lib/src/third_party/oauth2/LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright 2014, the Dart project authors.
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are
5+
met:
6+
7+
* Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
* Redistributions in binary form must reproduce the above
10+
copyright notice, this list of conditions and the following
11+
disclaimer in the documentation and/or other materials provided
12+
with the distribution.
13+
* Neither the name of Google LLC nor the names of its
14+
contributors may be used to endorse or promote products derived
15+
from this software without specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)