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
7ea579bb
Commit
7ea579bb
authored
Apr 28, 2015
by
Garrett Bjerkhoel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add team_ids configuration option
parent
8a986ec3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
conf/defaults.ini
+1
-0
pkg/social/social.go
+3
-1
No files found.
conf/defaults.ini
View file @
7ea579bb
...
...
@@ -140,6 +140,7 @@ enabled = false
client_id
=
some_id
client_secret
=
some_secret
scopes
=
user:email
team_ids
=
auth_url
=
https://github.com/login/oauth/authorize
token_url
=
https://github.com/login/oauth/access_token
api_url
=
https://api.github.com/user
...
...
pkg/social/social.go
View file @
7ea579bb
...
...
@@ -75,7 +75,8 @@ func NewOAuthService() {
// GitHub.
if
name
==
"github"
{
setting
.
OAuthService
.
GitHub
=
true
SocialMap
[
"github"
]
=
&
SocialGithub
{
Config
:
&
config
,
allowedDomains
:
info
.
AllowedDomains
,
ApiUrl
:
info
.
ApiUrl
,
allowSignup
:
info
.
AllowSignup
}
teamIds
:=
sec
.
Key
(
"team_ids"
)
.
Ints
(
","
)
SocialMap
[
"github"
]
=
&
SocialGithub
{
Config
:
&
config
,
allowedDomains
:
info
.
AllowedDomains
,
ApiUrl
:
info
.
ApiUrl
,
allowSignup
:
info
.
AllowSignup
,
teamIds
:
teamIds
}
}
// Google.
...
...
@@ -105,6 +106,7 @@ type SocialGithub struct {
allowedDomains
[]
string
ApiUrl
string
allowSignup
bool
teamIds
[]
int
}
func
(
s
*
SocialGithub
)
Type
()
int
{
...
...
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