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
eb517a37
Commit
eb517a37
authored
Dec 19, 2018
by
Tomas Dabasinskas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update field name
parent
e8823f71
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pkg/setting/setting_oauth.go
+1
-1
pkg/social/social.go
+2
-2
No files found.
pkg/setting/setting_oauth.go
View file @
eb517a37
...
...
@@ -15,7 +15,7 @@ type OAuthInfo struct {
TlsClientKey
string
TlsClientCa
string
TlsSkipVerify
bool
BrokenAuthHeaderProvider
bool
SendClientCredentialsViaPost
bool
}
type
OAuther
struct
{
...
...
pkg/social/social.go
View file @
eb517a37
...
...
@@ -79,7 +79,7 @@ func NewOAuthService() {
TlsClientKey
:
sec
.
Key
(
"tls_client_key"
)
.
String
(),
TlsClientCa
:
sec
.
Key
(
"tls_client_ca"
)
.
String
(),
TlsSkipVerify
:
sec
.
Key
(
"tls_skip_verify_insecure"
)
.
MustBool
(),
BrokenAuthHeaderProvider
:
sec
.
Key
(
"send_client_credentials_via_post"
)
.
MustBool
(),
SendClientCredentialsViaPost
:
sec
.
Key
(
"send_client_credentials_via_post"
)
.
MustBool
(),
}
if
!
info
.
Enabled
{
...
...
@@ -87,7 +87,7 @@ func NewOAuthService() {
}
// handle the clients that do not properly support Basic auth headers and require passing client_id/client_secret via POST payload
if
info
.
BrokenAuthHeaderProvider
{
if
info
.
SendClientCredentialsViaPost
{
oauth2
.
RegisterBrokenAuthHeaderProvider
(
info
.
TokenUrl
)
}
...
...
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