Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
e53315dc
Unverified
Commit
e53315dc
authored
Mar 23, 2018
by
Dan Cech
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
a1b1d2fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
pkg/login/ext_user.go
+1
-1
pkg/middleware/auth_proxy.go
+1
-0
pkg/services/sqlstore/user_auth.go
+1
-1
No files found.
pkg/login/ext_user.go
View file @
e53315dc
...
...
@@ -117,8 +117,8 @@ func updateUser(user *m.User, extUser *m.ExternalUserInfo) error {
}
func
syncOrgRoles
(
user
*
m
.
User
,
extUser
*
m
.
ExternalUserInfo
)
error
{
// don't sync org roles if none are specified
if
len
(
extUser
.
OrgRoles
)
==
0
{
// log.Warn("No group mappings defined")
return
nil
}
...
...
pkg/middleware/auth_proxy.go
View file @
e53315dc
...
...
@@ -68,6 +68,7 @@ func initContextWithAuthProxy(ctx *m.ReqContext, orgID int64) bool {
extUser
.
Login
=
proxyHeaderValue
}
else
{
ctx
.
Handle
(
500
,
"Auth proxy header property invalid"
,
nil
)
return
true
}
// add/update user in grafana
...
...
pkg/services/sqlstore/user_auth.go
View file @
e53315dc
...
...
@@ -15,7 +15,7 @@ func init() {
}
func
GetUserByAuthInfo
(
query
*
m
.
GetUserByAuthInfoQuery
)
error
{
user
:=
new
(
m
.
User
)
user
:=
&
m
.
User
{}
has
:=
false
var
err
error
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment