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

Unified Diff: server/auth/authtest/method.go

Issue 2830443003: auth: Refactor how authentication methods are passed to server/auth library. (Closed)
Patch Set: fix test Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « server/auth/auth_test.go ('k') | server/auth/authtest/state.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/auth/authtest/method.go
diff --git a/server/auth/authtest/method.go b/server/auth/authtest/method.go
index 6a611a5cad7226851937559d13c7bbfef01d8ba0..3043015d7b39ada621ec824605f1a04392548414 100644
--- a/server/auth/authtest/method.go
+++ b/server/auth/authtest/method.go
@@ -33,10 +33,10 @@ func (m FakeAuth) Authenticate(context.Context, *http.Request) (*auth.User, erro
// LoginURL returns fake login URL.
func (m FakeAuth) LoginURL(c context.Context, dest string) (string, error) {
- return "http://fake/login?dest=" + url.QueryEscape(dest), nil
+ return "http://fake.example.com/login?dest=" + url.QueryEscape(dest), nil
}
// LogoutURL returns fake logout URL.
func (m FakeAuth) LogoutURL(c context.Context, dest string) (string, error) {
- return "http://fake/logout?dest=" + url.QueryEscape(dest), nil
+ return "http://fake.example.com/logout?dest=" + url.QueryEscape(dest), nil
}
« no previous file with comments | « server/auth/auth_test.go ('k') | server/auth/authtest/state.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698