Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 6432168

Browse files
committed
add 'tenant' property into user
1 parent cdc0155 commit 6432168

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/auth/user/user.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ type Info interface {
2727
GetUID() string
2828
// GetGroups returns the names of the groups the user is a member of
2929
GetGroups() []string
30+
31+
GetTenant() string
3032
}
3133

3234
// DefaultInfo provides a simple user information exchange object
@@ -35,6 +37,7 @@ type DefaultInfo struct {
3537
Name string
3638
UID string
3739
Groups []string
40+
Tenant string
3841
}
3942

4043
func (i *DefaultInfo) GetName() string {
@@ -48,3 +51,7 @@ func (i *DefaultInfo) GetUID() string {
4851
func (i *DefaultInfo) GetGroups() []string {
4952
return i.Groups
5053
}
54+
55+
func (i *DefaultInfo) GetTenant() string {
56+
return i.Tenant
57+
}

0 commit comments

Comments
 (0)