Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4783)

Issue 125940043: code review 125940043: goauth2: error out on empty access token (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 8 months ago by adg
Modified:
9 years, 8 months ago
Reviewers:
bradfitz
CC:
bradfitz, golang-codereviews
Visibility:
Public.

Description

goauth2: forbid empty access token, include json response in error Fixes issue 32. Fixes issue 33.

Patch Set 1 #

Patch Set 2 : diff -r 6a3615e294b534a1c24cb5d3d7570fa8bbc30c99 https://code.google.com/p/goauth2 #

Total comments: 2

Patch Set 3 : diff -r 8273d5a0e11ac140f06b383f4ceb3358f01130a9 https://code.google.com/p/goauth2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -6 lines) Patch
M oauth/oauth.go View 1 2 3 chunks +13 lines, -6 lines 0 comments Download

Messages

Total messages: 4
adg
Hello bradfitz (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/goauth2
9 years, 8 months ago (2014-08-11 06:05:21 UTC) #1
bradfitz
LGTM On Aug 10, 2014 11:05 PM, <adg@golang.org> wrote: > Reviewers: bradfitz, > > Message: ...
9 years, 8 months ago (2014-08-11 15:27:14 UTC) #2
bradfitz
LGTM https://codereview.appspot.com/125940043/diff/20001/oauth/oauth.go File oauth/oauth.go (right): https://codereview.appspot.com/125940043/diff/20001/oauth/oauth.go#newcode359 oauth/oauth.go:359: body, err := ioutil.ReadAll(r.Body) I'd put an io.LimitReader ...
9 years, 8 months ago (2014-08-11 19:29:14 UTC) #3
adg
9 years, 8 months ago (2014-08-11 23:24:25 UTC) #4
*** Submitted as https://code.google.com/p/goauth2/source/detail?r=7fc9d958c834
***

goauth2: forbid empty access token, include json response in error

Fixes issue 32.
Fixes issue 33.

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://codereview.appspot.com/125940043

https://codereview.appspot.com/125940043/diff/20001/oauth/oauth.go
File oauth/oauth.go (right):

https://codereview.appspot.com/125940043/diff/20001/oauth/oauth.go#newcode359
oauth/oauth.go:359: body, err := ioutil.ReadAll(r.Body)
On 2014/08/11 19:29:14, bradfitz wrote:
> I'd put an io.LimitReader on this, capping it to, say, 1<<20 which is still
> ridiculous

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b