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

Issue 9824044: goauth2: Allow for empty redirect URLs.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by willnorris
Modified:
12 years, 4 months ago
Reviewers:
adg
CC:
adg, golang-dev
Visibility:
Public.

Description

goauth2: Allow for empty redirect URLs. The previous behavior was to use the value "oob" when no redirect URL was specified, which prevented clients from actually having an empty redirect URL. This is a breaking changing for any clients that are doing out-of-band code exchange, and were relying on this behavior. The fix for these clients is to manually specify a RedirectURL of "oob". Fixes 17

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -10 lines) Patch
M oauth/example/oauthreq.go View 1 chunk +1 line, -0 lines 0 comments Download
M oauth/oauth.go View 1 4 chunks +3 lines, -10 lines 0 comments Download

Messages

Total messages: 5
willnorris
12 years, 4 months ago (2013-06-04 22:57:09 UTC) #1
adg
https://codereview.appspot.com/9824044/diff/1/oauth/oauth.go File oauth/oauth.go (right): https://codereview.appspot.com/9824044/diff/1/oauth/oauth.go#newcode98 oauth/oauth.go:98: RedirectURL string // Defaults to out-of-band mode if empty. ...
12 years, 4 months ago (2013-06-04 23:01:36 UTC) #2
willnorris
https://codereview.appspot.com/9824044/diff/1/oauth/oauth.go File oauth/oauth.go (right): https://codereview.appspot.com/9824044/diff/1/oauth/oauth.go#newcode98 oauth/oauth.go:98: RedirectURL string // Defaults to out-of-band mode if empty. ...
12 years, 4 months ago (2013-06-04 23:04:33 UTC) #3
adg
LGTM Thanks!
12 years, 4 months ago (2013-06-04 23:10:20 UTC) #4
adg
12 years, 4 months ago (2013-06-04 23:13:57 UTC) #5
*** Submitted as https://code.google.com/p/goauth2/source/detail?r=cf01a4ad4a2e *** goauth2: Allow for empty redirect URLs. The previous behavior was to use the value "oob" when no redirect URL was specified, which prevented clients from actually having an empty redirect URL. This is a breaking changing for any clients that are doing out-of-band code exchange, and were relying on this behavior. The fix for these clients is to manually specify a RedirectURL of "oob". Fixes 17 R=adg CC=golang-dev https://codereview.appspot.com/9824044 Committer: Andrew Gerrand <adg@golang.org>
Sign in to reply to this message.

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