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

Unified Diff: examples/appengine/helloworld_standard/frontend/handler.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 | « examples/appengine/helloworld_flexible/frontend/main.go ('k') | milo/appengine/common/middleware.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/appengine/helloworld_standard/frontend/handler.go
diff --git a/examples/appengine/helloworld_standard/frontend/handler.go b/examples/appengine/helloworld_standard/frontend/handler.go
index 9f78207f59b03a06d2ecf2e527e039f0d8f50006..078c90b034d4e5eb9be62a7cbc8aa5ae2877cf49 100644
--- a/examples/appengine/helloworld_standard/frontend/handler.go
+++ b/examples/appengine/helloworld_standard/frontend/handler.go
@@ -57,8 +57,7 @@ var templateBundle = &templates.Bundle{
func pageBase() router.MiddlewareChain {
return gaemiddleware.BaseProd().Extend(
templates.WithTemplates(templateBundle),
- auth.Use(auth.Authenticator{server.CookieAuth}),
- auth.Authenticate,
+ auth.Authenticate(server.CookieAuth),
)
}
« no previous file with comments | « examples/appengine/helloworld_flexible/frontend/main.go ('k') | milo/appengine/common/middleware.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698