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

Unified Diff: appengine/gaeauth/server/prpc.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 | « no previous file | examples/appengine/helloworld_flexible/frontend/main.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/gaeauth/server/prpc.go
diff --git a/appengine/gaeauth/server/prpc.go b/appengine/gaeauth/server/prpc.go
index 33529e8885be51d14e919e9ac7a1e4bb92010682..16a27996bd53da4b200117e9ee1a162bf1e1b45d 100644
--- a/appengine/gaeauth/server/prpc.go
+++ b/appengine/gaeauth/server/prpc.go
@@ -10,7 +10,9 @@ import (
)
func init() {
- prpc.RegisterDefaultAuth(auth.Authenticator{
- &OAuth2Method{Scopes: []string{EmailScope}},
+ prpc.RegisterDefaultAuth(&auth.Authenticator{
+ Methods: []auth.Method{
+ &OAuth2Method{Scopes: []string{EmailScope}},
+ },
})
}
« no previous file with comments | « no previous file | examples/appengine/helloworld_flexible/frontend/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698