OAuth: return github teams as a part of user info (enable team sync) (#17797)

* OAuth: github team sync POC

* OAuth: minor refactor of github module

* OAuth: able to use team shorthands for github team sync

* support passing a list of groups via auth-proxy header
This commit is contained in:
Alexander Zobnin
2019-07-01 12:30:17 +03:00
committed by GitHub
parent 4e27ba9646
commit c2affdee1e
5 changed files with 62 additions and 26 deletions
+1
View File
@@ -171,6 +171,7 @@ func (hs *HTTPServer) OAuthLogin(ctx *m.ReqContext) {
Login: userInfo.Login,
Email: userInfo.Email,
OrgRoles: map[int64]m.RoleType{},
Groups: userInfo.Groups,
}
if userInfo.Role != "" {