| 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..40b9baf37df9135706c42a216eec2124a3d6cee7 100644
|
| --- a/examples/appengine/helloworld_flexible/frontend/main.go
|
| +++ b/examples/appengine/helloworld_flexible/frontend/main.go
|
| @@ -52,15 +52,15 @@ 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(&auth.Authenticator{
|
| + Methods: []auth.Method{
|
| + &server.OAuth2Method{Scopes: []string{server.EmailScope}},
|
| + server.CookieAuth,
|
| + &server.InboundAppIDAuthMethod{},
|
| + },
|
| + }),
|
| )
|
| }
|
|
|
|
|