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

Unified Diff: examples/appengine/helloworld_flexible/frontend/main.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 | « appengine/gaeauth/server/prpc.go ('k') | examples/appengine/helloworld_standard/frontend/handler.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/appengine/helloworld_flexible/frontend/main.go
diff --git a/examples/appengine/helloworld_flexible/frontend/main.go b/examples/appengine/helloworld_flexible/frontend/main.go
index 9a37a88f24065e660ce658682cc0d15be491dcc5..b8a1738f33b1f915c25b75dc6f2f47b12852e2a9 100644
--- a/examples/appengine/helloworld_flexible/frontend/main.go
+++ b/examples/appengine/helloworld_flexible/frontend/main.go
@@ -52,15 +52,9 @@ var templateBundle = &templates.Bundle{
// base returns the root middleware chain.
func base() router.MiddlewareChain {
- methods := auth.Authenticator{
- &server.OAuth2Method{Scopes: []string{server.EmailScope}},
- server.CookieAuth,
- &server.InboundAppIDAuthMethod{},
- }
return gaemiddleware.BaseProd().Extend(
templates.WithTemplates(templateBundle),
- auth.Use(methods),
- auth.Authenticate,
+ auth.Authenticate(server.CookieAuth),
)
}
« no previous file with comments | « appengine/gaeauth/server/prpc.go ('k') | examples/appengine/helloworld_standard/frontend/handler.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698