OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The LUCI Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
3 // found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
4 | 4 |
5 package user | 5 package user |
6 | 6 |
7 import "google.golang.org/appengine/user" | 7 import "google.golang.org/appengine/user" |
8 | 8 |
9 // User is a mimic of https://godoc.org/google.golang.org/appengine/user#User | 9 // User is a mimic of https://godoc.org/google.golang.org/appengine/user#User |
10 // | 10 // |
11 // It's provided here for convenience, and is compile-time checked to be | 11 // It's provided here for convenience, and is compile-time checked to be |
12 // identical. | 12 // identical. |
13 type User struct { | 13 type User struct { |
14 Email string | 14 Email string |
15 AuthDomain string | 15 AuthDomain string |
16 Admin bool | 16 Admin bool |
17 ID string | 17 ID string |
18 ClientID string | 18 ClientID string |
19 FederatedIdentity string | 19 FederatedIdentity string |
20 FederatedProvider string | 20 FederatedProvider string |
21 } | 21 } |
22 | 22 |
23 var _ User = (User)(user.User{}) | 23 var _ User = (User)(user.User{}) |
OLD | NEW |