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

Unified Diff: impl/prod/user.go

Issue 1493183003: Fix User API (CurrentOAuth) (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: Created 5 years 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 | « impl/dummy/dummy.go ('k') | service/user/interface.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/prod/user.go
diff --git a/impl/prod/user.go b/impl/prod/user.go
index 7d8ad2a098ed68f8373e10af706326c675a8cd57..58b538e332a69ce042b0cf27454a2c6796b10be9 100644
--- a/impl/prod/user.go
+++ b/impl/prod/user.go
@@ -42,8 +42,8 @@ func (u userImpl) Current() *gae_user.User {
return (*gae_user.User)(user.Current(u.aeCtx))
}
-func (u userImpl) CurrentOAuth() (*gae_user.User, error) {
- usr, err := user.CurrentOAuth(u.aeCtx)
+func (u userImpl) CurrentOAuth(scopes ...string) (*gae_user.User, error) {
+ usr, err := user.CurrentOAuth(u.aeCtx, scopes...)
if err != nil {
return nil, err
}
« no previous file with comments | « impl/dummy/dummy.go ('k') | service/user/interface.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698