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
83f1ae4e
Commit
83f1ae4e
authored
Oct 06, 2017
by
Matt Bostock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OAuth: Rename sslcli
Rename `sslcli` to the more descriptive `oauthClient`.
parent
ccf093da
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pkg/api/login_oauth.go
+2
-2
No files found.
pkg/api/login_oauth.go
View file @
83f1ae4e
...
@@ -83,7 +83,7 @@ func OAuthLogin(ctx *middleware.Context) {
...
@@ -83,7 +83,7 @@ func OAuthLogin(ctx *middleware.Context) {
InsecureSkipVerify
:
setting
.
OAuthService
.
OAuthInfos
[
name
]
.
TlsSkipVerify
,
InsecureSkipVerify
:
setting
.
OAuthService
.
OAuthInfos
[
name
]
.
TlsSkipVerify
,
},
},
}
}
sslcli
:=
&
http
.
Client
{
oauthClient
:=
&
http
.
Client
{
Transport
:
tr
,
Transport
:
tr
,
}
}
...
@@ -107,7 +107,7 @@ func OAuthLogin(ctx *middleware.Context) {
...
@@ -107,7 +107,7 @@ func OAuthLogin(ctx *middleware.Context) {
tr
.
TLSClientConfig
.
RootCAs
=
caCertPool
tr
.
TLSClientConfig
.
RootCAs
=
caCertPool
}
}
oauthCtx
:=
context
.
WithValue
(
context
.
Background
(),
oauth2
.
HTTPClient
,
sslcli
)
oauthCtx
:=
context
.
WithValue
(
context
.
Background
(),
oauth2
.
HTTPClient
,
oauthClient
)
// get token from provider
// get token from provider
token
,
err
:=
connect
.
Exchange
(
oauthCtx
,
code
)
token
,
err
:=
connect
.
Exchange
(
oauthCtx
,
code
)
...
...
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