| OLD | NEW |
| 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{ |
| 15 » » » &OAuth2Method{Scopes: []string{EmailScope}}, |
| 16 » » }, |
| 15 }) | 17 }) |
| 16 } | 18 } |
| OLD | NEW |