Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Issue 11118021: Add support for authorization of HTTP client requests (Closed)

Created:
8 years, 2 months ago by Søren Gjesse
Modified:
8 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add support for authorization of HTTP client requests This implements the infrastructure for authorization of HTTP client requests. Currently only basic authentication is fully implemented, but the infrastructure to support digest is there. Please focus on the developer facing API with the authenticate callback and addCredentials method. R=ager@google.com,ajohnsen@google.com BUG=dart:2788 TEST=tests/standalone/io/http_auth_test.dart Committed: https://code.google.com/p/dart/source/detail?r=14189

Patch Set 1 #

Total comments: 14

Patch Set 2 : Addressed review comments #

Total comments: 6

Patch Set 3 : Addressed more comments + made the authenticate callback async #

Total comments: 2

Patch Set 4 : Rebased to r14132 #

Patch Set 5 : Addressed review comments from ajohnsen@ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+565 lines, -15 lines) Patch
M runtime/bin/http.dart View 1 2 3 4 3 chunks +49 lines, -2 lines 1 comment Download
M runtime/bin/http_impl.dart View 1 2 3 14 chunks +252 lines, -11 lines 0 comments Download
A tests/standalone/io/http_auth_test.dart View 1 2 1 chunk +264 lines, -0 lines 0 comments Download
M tests/standalone/io/http_client_test.dart View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Søren Gjesse
8 years, 2 months ago (2012-10-12 13:32:50 UTC) #1
Mads Ager (google)
https://codereview.chromium.org/11118021/diff/1/runtime/bin/http.dart File runtime/bin/http.dart (right): https://codereview.chromium.org/11118021/diff/1/runtime/bin/http.dart#newcode721 runtime/bin/http.dart:721: * the updated credentials. Otherwise response procession will procession ...
8 years, 2 months ago (2012-10-17 11:26:43 UTC) #2
Anders Johnsen
https://codereview.chromium.org/11118021/diff/1/runtime/bin/http.dart File runtime/bin/http.dart (right): https://codereview.chromium.org/11118021/diff/1/runtime/bin/http.dart#newcode721 runtime/bin/http.dart:721: * the updated credentials. Otherwise response procession will On ...
8 years, 2 months ago (2012-10-22 14:01:22 UTC) #3
Søren Gjesse
PTAL Addressed comments and updated test (and fixed checked mode issues). We could still discuss ...
8 years, 1 month ago (2012-10-26 09:43:00 UTC) #4
Mads Ager (google)
LGTM! My main concern here was the reauthentication support which is there now. Good point ...
8 years, 1 month ago (2012-10-26 11:07:02 UTC) #5
Søren Gjesse
PTAL Changes HttpClient.authenticate to be async. https://codereview.chromium.org/11118021/diff/6001/runtime/bin/http_impl.dart File runtime/bin/http_impl.dart (right): https://codereview.chromium.org/11118021/diff/6001/runtime/bin/http_impl.dart#newcode1750 runtime/bin/http_impl.dart:1750: // already been ...
8 years, 1 month ago (2012-10-26 12:59:01 UTC) #6
Anders Johnsen
LGTM https://codereview.chromium.org/11118021/diff/11001/runtime/bin/http.dart File runtime/bin/http.dart (right): https://codereview.chromium.org/11118021/diff/11001/runtime/bin/http.dart#newcode719 runtime/bin/http.dart:719: * provided the [Futire] should complete with [false]. ...
8 years, 1 month ago (2012-10-26 13:04:50 UTC) #7
Søren Gjesse
https://codereview.chromium.org/11118021/diff/11001/runtime/bin/http.dart File runtime/bin/http.dart (right): https://codereview.chromium.org/11118021/diff/11001/runtime/bin/http.dart#newcode719 runtime/bin/http.dart:719: * provided the [Futire] should complete with [false]. If ...
8 years, 1 month ago (2012-10-26 13:41:06 UTC) #8
Mads Ager (google)
8 years, 1 month ago (2012-10-26 13:53:20 UTC) #9
LGTM

https://codereview.chromium.org/11118021/diff/16001/runtime/bin/http.dart
File runtime/bin/http.dart (right):

https://codereview.chromium.org/11118021/diff/16001/runtime/bin/http.dart#new...
runtime/bin/http.dart:757: * authentication have been resolved. If credentials
cannot be
have -> has

Powered by Google App Engine
This is Rietveld 408576698