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

Side by Side Diff: appengine/gaeauth/server/prpc.go

Issue 2830443003: auth: Refactor how authentication methods are passed to server/auth library. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The LUCI Authors. All rights reserved. 1 // Copyright 2016 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package server 5 package server
6 6
7 import ( 7 import (
8 "github.com/luci/luci-go/grpc/prpc" 8 "github.com/luci/luci-go/grpc/prpc"
9 "github.com/luci/luci-go/server/auth" 9 "github.com/luci/luci-go/server/auth"
10 ) 10 )
11 11
12 func init() { 12 func init() {
13 » prpc.RegisterDefaultAuth(auth.Authenticator{ 13 » prpc.RegisterDefaultAuth(&auth.Authenticator{
14 » » &OAuth2Method{Scopes: []string{EmailScope}}, 14 » » Methods: []auth.Method{
Vadim Sh. 2017/04/18 23:46:24 This is more verbose, but I think it looks less ma
15 » » » &OAuth2Method{Scopes: []string{EmailScope}},
16 » » },
15 }) 17 })
16 } 18 }
OLDNEW
« no previous file with comments | « no previous file | examples/appengine/helloworld_flexible/frontend/main.go » ('j') | milo/appengine/frontend/main_test.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698