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
7072af7c
Commit
7072af7c
authored
Aug 21, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(auth proxy): Fix for server side rendering of panel when using auth proxy, fixes #2568
parent
abd7c15b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletions
+11
-1
.bra.toml
+1
-1
CHANGELOG.md
+1
-0
pkg/middleware/auth_proxy.go
+9
-0
No files found.
.bra.toml
View file @
7072af7c
...
@@ -9,7 +9,7 @@ watch_dirs = [
...
@@ -9,7 +9,7 @@ watch_dirs = [
"$WORKDIR/public/views"
,
"$WORKDIR/public/views"
,
"$WORKDIR/conf"
,
"$WORKDIR/conf"
,
]
]
watch_exts
=
[
".go"
,
"
conf/*
"
]
watch_exts
=
[
".go"
,
"
.ini"
,
".toml
"
]
build_delay
=
1500
build_delay
=
1500
cmds
=
[
cmds
=
[
[
"go"
,
"build"
,
"-o"
,
"./bin/grafana-server"
],
[
"go"
,
"build"
,
"-o"
,
"./bin/grafana-server"
],
...
...
CHANGELOG.md
View file @
7072af7c
...
@@ -10,6 +10,7 @@ it allows you to add queries of differnet data source types & instances to the s
...
@@ -10,6 +10,7 @@ it allows you to add queries of differnet data source types & instances to the s
-
[
Issue #1186
](
https://github.com/grafana/grafana/issues/1186
)
. Time Picker: New option
`today`
, will set time range from midnight to now
-
[
Issue #1186
](
https://github.com/grafana/grafana/issues/1186
)
. Time Picker: New option
`today`
, will set time range from midnight to now
**Fixes**
**Fixes**
-
[
Issue #2568
](
https://github.com/grafana/grafana/issues/2568
)
. AuthProxy: Fix for server side rendering of panel when using auth proxy
-
[
Issue #2490
](
https://github.com/grafana/grafana/issues/2490
)
. Graphite: Dashboard import was broken in 2.1 and 2.1.1, working now
-
[
Issue #2490
](
https://github.com/grafana/grafana/issues/2490
)
. Graphite: Dashboard import was broken in 2.1 and 2.1.1, working now
-
[
Issue #2565
](
https://github.com/grafana/grafana/issues/2565
)
. TimePicker: Fix for when you applied custom time range it did not refreh dashboard
-
[
Issue #2565
](
https://github.com/grafana/grafana/issues/2565
)
. TimePicker: Fix for when you applied custom time range it did not refreh dashboard
...
...
pkg/middleware/auth_proxy.go
View file @
7072af7c
...
@@ -2,6 +2,7 @@ package middleware
...
@@ -2,6 +2,7 @@ package middleware
import
(
import
(
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/log"
m
"github.com/grafana/grafana/pkg/models"
m
"github.com/grafana/grafana/pkg/models"
"github.com/grafana/grafana/pkg/setting"
"github.com/grafana/grafana/pkg/setting"
)
)
...
@@ -39,8 +40,16 @@ func initContextWithAuthProxy(ctx *Context) bool {
...
@@ -39,8 +40,16 @@ func initContextWithAuthProxy(ctx *Context) bool {
}
}
}
}
// initialize session
if
err
:=
ctx
.
Session
.
Start
(
ctx
);
err
!=
nil
{
log
.
Error
(
3
,
"Failed to start session"
,
err
)
return
false
}
ctx
.
SignedInUser
=
query
.
Result
ctx
.
SignedInUser
=
query
.
Result
ctx
.
IsSignedIn
=
true
ctx
.
IsSignedIn
=
true
ctx
.
Session
.
Set
(
SESS_KEY_USERID
,
ctx
.
UserId
)
return
true
return
true
}
}
...
...
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