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
a09044a4
Unverified
Commit
a09044a4
authored
Jan 18, 2018
by
Dan Cech
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go fmt
parent
04e17c14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
pkg/social/generic_oauth.go
+1
-1
pkg/social/social.go
+12
-12
No files found.
pkg/social/generic_oauth.go
View file @
a09044a4
...
...
@@ -225,7 +225,7 @@ func (s *SocialGenericOAuth) UserInfo(client *http.Client, token *oauth2.Token)
return
userInfo
,
nil
}
func
(
s
*
SocialGenericOAuth
)
extractToken
(
data
*
UserInfoJson
,
token
*
oauth2
.
Token
)
(
bool
)
{
func
(
s
*
SocialGenericOAuth
)
extractToken
(
data
*
UserInfoJson
,
token
*
oauth2
.
Token
)
bool
{
idToken
:=
token
.
Extra
(
"id_token"
)
if
idToken
==
nil
{
s
.
log
.
Debug
(
"No id_token found"
,
"token"
,
token
)
...
...
pkg/social/social.go
View file @
a09044a4
...
...
@@ -102,9 +102,9 @@ func NewOAuthService() {
// GitHub.
if
name
==
"github"
{
SocialMap
[
"github"
]
=
&
SocialGithub
{
SocialBase
:
&
SocialBase
{
Config
:
&
config
,
log
:
logger
,
SocialBase
:
&
SocialBase
{
Config
:
&
config
,
log
:
logger
,
},
allowedDomains
:
info
.
AllowedDomains
,
apiUrl
:
info
.
ApiUrl
,
...
...
@@ -117,9 +117,9 @@ func NewOAuthService() {
// Google.
if
name
==
"google"
{
SocialMap
[
"google"
]
=
&
SocialGoogle
{
SocialBase
:
&
SocialBase
{
Config
:
&
config
,
log
:
logger
,
SocialBase
:
&
SocialBase
{
Config
:
&
config
,
log
:
logger
,
},
allowedDomains
:
info
.
AllowedDomains
,
hostedDomain
:
info
.
HostedDomain
,
...
...
@@ -131,9 +131,9 @@ func NewOAuthService() {
// Generic - Uses the same scheme as Github.
if
name
==
"generic_oauth"
{
SocialMap
[
"generic_oauth"
]
=
&
SocialGenericOAuth
{
SocialBase
:
&
SocialBase
{
Config
:
&
config
,
log
:
logger
,
SocialBase
:
&
SocialBase
{
Config
:
&
config
,
log
:
logger
,
},
allowedDomains
:
info
.
AllowedDomains
,
apiUrl
:
info
.
ApiUrl
,
...
...
@@ -156,9 +156,9 @@ func NewOAuthService() {
}
SocialMap
[
"grafana_com"
]
=
&
SocialGrafanaCom
{
SocialBase
:
&
SocialBase
{
Config
:
&
config
,
log
:
logger
,
SocialBase
:
&
SocialBase
{
Config
:
&
config
,
log
:
logger
,
},
url
:
setting
.
GrafanaComUrl
,
allowSignup
:
info
.
AllowSignup
,
...
...
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