Skip to content

Fixed messages #3110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 86 commits into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
218d114
wip: Prepare authentication proposal
themisir May 18, 2021
da1549f
doc: Add details about 'realm' parameter
themisir May 19, 2021
becf34f
Update authentication-proposal.md
themisir May 19, 2021
0999292
Merge branch 'dart-lang:master' into master
themisir May 19, 2021
ac8b70f
Implement CredentialStore and Credential for bearer method
themisir May 19, 2021
fc12fa8
Login and logout commands with hosted pub repo
themisir May 19, 2021
5a8d6f3
formatting: remove space
themisir May 19, 2021
427a7d9
Rename add/removeCredentials to add/removeServer
themisir May 19, 2021
fd45e4a
Allow wrapping http clients
themisir May 20, 2021
7955153
Implemented AuthenticationClient
themisir May 20, 2021
719005d
Authentication client added to stack of other clients
themisir May 20, 2021
383122d
Throw usage exception for more than one argument
themisir May 20, 2021
15e6238
Implemented publishing with saved credential support
themisir May 21, 2021
402154d
Modified authentication client
themisir May 21, 2021
bf675a3
Add comment documentation to AuthenticationClient
themisir May 21, 2021
13f0fc0
Rename to/fromMap to to/fromJson
themisir May 21, 2021
8e7fd96
Login / logout now uses option parameter instead of argument
themisir May 21, 2021
50a6b5f
Authentication now needs to be used explicitly when needed
themisir May 21, 2021
84a6c95
Update list command to use authenticated client
themisir May 21, 2021
8547a32
Change access modifier for authenticationType to @protected
themisir May 21, 2021
7896061
Add docs
themisir May 21, 2021
b2194de
Added file headers
themisir May 21, 2021
6aeaec1
Update lib/src/source/hosted.dart
themisir May 25, 2021
c917ec3
Rename server key to serverBaseUrl
themisir May 25, 2021
8d91007
Removed alsoMatches argument
themisir May 25, 2021
d6e0254
Rename _AuthenticationClient to _AuthenticatedClient
themisir May 26, 2021
094ad56
Update credential Json serialization
themisir May 26, 2021
4f652ff
Fixed credential server base url matching
themisir May 26, 2021
e937a37
Rename some "key"s to "serverBaseUrl"
themisir May 28, 2021
f800eef
Updated proposal document
themisir May 28, 2021
cac0fee
Modified http.dart
themisir May 28, 2021
be1fee1
Revert "Modified http.dart"
themisir May 28, 2021
2ad3ebd
Merge branch 'dart-lang:master' into master
themisir May 28, 2021
7286e4b
Modified error handling of withAuthenticatedClient
themisir May 29, 2021
3e5a3e2
Integration tests for login with server command
themisir May 29, 2021
1308b4a
Integration tests for logout server command
themisir May 29, 2021
4eea298
Modified JSON (de)serialization
themisir Jun 1, 2021
4ee285a
Annotate BearerCredential with @sealed
themisir Jun 1, 2021
5d57abb
doc, refac: Minor changes
themisir Jun 1, 2021
1cc1bd8
Modified tokens.json format on auth spec doc
themisir Jun 1, 2021
dbedbaa
Modified authentication modelling scheme
themisir Jun 1, 2021
ec703f6
Refactoring credential_store.dart
themisir Jun 1, 2021
5b44966
Merge remote-tracking branch 'upstream/master'
themisir Jun 5, 2021
f16fbbe
Request authenticated client using server base url instead of full re…
themisir Jun 5, 2021
7dcfd97
Exact URL matching for finding schemas
themisir Jun 5, 2021
d6399de
Modify _normalizeUrl method
themisir Jun 5, 2021
72973fc
URL normalization, login and logout commands are modified
themisir Jun 20, 2021
99bccd8
Modified scheme URL matching
themisir Jun 20, 2021
951e5c3
Remove credential and auth schema abstractions and replace them with …
themisir Aug 19, 2021
42fcf2b
Update tests for abstraction changes
themisir Aug 19, 2021
35d8896
Merge branch 'pr/themisir/2'
themisir Aug 19, 2021
030c6f9
Sorted directives
themisir Aug 19, 2021
946b547
Normalize token.url using validateAndNormalizeHostedUrl
themisir Aug 19, 2021
e602167
Modified removeMatchingTokens implementation
themisir Aug 30, 2021
0a37f19
pub login and logout commands reverted back
themisir Aug 30, 2021
73b921e
Updated constructor signature for Token class
themisir Aug 30, 2021
d431c08
Implemented token .. commands
themisir Aug 30, 2021
d2f4115
Removed authentication-proposal.md
themisir Aug 30, 2021
f70e766
Remove tokens.json on load error
themisir Aug 30, 2021
17400b0
Updated tests and fixed minor bugs
themisir Aug 30, 2021
38ca11c
Update helptext.txt golden
themisir Aug 30, 2021
ded22ce
Log token removal message in command body
themisir Aug 31, 2021
19ec461
Remove duplicate tokens when adding a new one
themisir Aug 31, 2021
fc0af7e
Print information when 401 and 403 received
themisir Aug 31, 2021
92352ed
Break out of loop after finding first duplicate
themisir Aug 31, 2021
0bfc2d0
Added or updated license headers
themisir Aug 31, 2021
b34dacc
Update lib/src/io.dart
themisir Sep 2, 2021
a27e89f
Change argument type of removeMatchingTokens from String to Uri
themisir Sep 2, 2021
d4ca151
Implement confirm using stdinPrompt
themisir Sep 2, 2021
b8a779e
Update messages for token commands
themisir Sep 2, 2021
3ca7d0f
Merge branch 'dart-lang:master' into master
themisir Sep 2, 2021
2e9105c
Remaining requested changes implemented
themisir Sep 2, 2021
344cba6
Merge branch 'master' of github.com:TheMisir/pub
themisir Sep 2, 2021
e92b69e
Updated token tests according to recent changes
themisir Sep 2, 2021
98549b2
Update helptext.txt golden
themisir Sep 2, 2021
5ed7e03
Do not expose oauth2 creds to 3rd party servers
themisir Sep 10, 2021
bebc6d2
Throw DataException when no token found for token remove
themisir Sep 10, 2021
cab0343
Merge branch 'dart-lang:master' into master
themisir Sep 10, 2021
82e5038
Persist unknown fields on unmodified token entries
themisir Sep 10, 2021
086053d
Merge branch 'master' into master
themisir Sep 13, 2021
69f8f5b
Allow mock servers to use oauth2 client
themisir Sep 13, 2021
7f3fa89
Truncate server message
themisir Sep 13, 2021
299a4f3
Minor refactoring for Credential and TokenStore
themisir Sep 13, 2021
08d58eb
Merge branch 'dart-lang:master' into master
themisir Sep 14, 2021
8981fe5
Fixed messages
themisir Sep 14, 2021
9ac7ff6
Fix message on tests
themisir Sep 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/src/command/token_add.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class TokenAddCommand extends PubCommand {
try {
var hostedUrl = validateAndNormalizeHostedUrl(argResults.rest.first);
if (hostedUrl.isScheme('HTTP')) {
throw DataException('Unsecure package repository could not be added.');
throw DataException('Insecure package repository could not be added.');
}

final token = await stdinPrompt('Enter secret token:')
Expand All @@ -58,7 +58,7 @@ class TokenAddCommand extends PubCommand {
// Timeout is added to readLine call to make sure automated jobs doesn't
// get stuck on noop state if user forget to pipe token to the 'token add'
// command. This behavior might be removed.
throw ApplicationException('Token is not provided within 5 minutes.');
throw ApplicationException('Token is not provided within 15 minutes.');
}
}
}
2 changes: 1 addition & 1 deletion test/token/add_token_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void main() {
await d.dir(cachePath).create();
await runPub(
args: ['token', 'add', 'http://mypub.com'],
error: contains('Unsecure package repository could not be added.'),
error: contains('Insecure package repository could not be added.'),
exitCode: exit_codes.DATA,
);

Expand Down