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

Unified Diff: service/user/interface.go

Issue 1500433002: Add User service. (Closed) Base URL: https://github.com/luci/gae.git@inner_ctx
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
Index: service/user/interface.go
diff --git a/service/user/interface.go b/service/user/interface.go
new file mode 100644
index 0000000000000000000000000000000000000000..2c2e27522e594deb771beb673e33be4d98df84c0
--- /dev/null
+++ b/service/user/interface.go
@@ -0,0 +1,19 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package user
+
+// Interface provides access to the "appengine/users" API methods.
+type Interface interface {
+ Current() *User
+ CurrentOAuth() (*User, error)
+
+ IsAdmin() bool
+
+ LoginURL(dest string) (string, error)
+ LoginURLFederated(dest, identity string) (string, error)
+ LogoutURL(dest string) (string, error)
+
+ OAuthConsumerKey() (string, error)
+}

Powered by Google App Engine
This is Rietveld 408576698