Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Luc Bourdot
codimd
Commits
2a365d69
Commit
2a365d69
authored
Oct 30, 2019
by
Ruben ten Hove
Browse files
fix linter issues
Signed-off-by:
Ruben ten Hove
<
git@rhtenhove.nl
>
parent
afc4a3e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/web/auth/gitlab/index.js
View file @
2a365d69
...
...
@@ -6,11 +6,11 @@ const GitlabStrategy = require('passport-gitlab2').Strategy
const
config
=
require
(
'
../../../config
'
)
const
response
=
require
(
'
../../../response
'
)
const
{
setReturnToFromReferer
,
passportGeneralCallback
}
=
require
(
'
../utils
'
)
const
HttpsProxyAgent
=
require
(
'
https-proxy-agent
'
)
;
const
HttpsProxyAgent
=
require
(
'
https-proxy-agent
'
)
const
gitlabAuth
=
module
.
exports
=
Router
()
le
t
gitlabAuthStrategy
=
new
GitlabStrategy
({
cons
t
gitlabAuthStrategy
=
new
GitlabStrategy
({
baseURL
:
config
.
gitlab
.
baseURL
,
clientID
:
config
.
gitlab
.
clientID
,
clientSecret
:
config
.
gitlab
.
clientSecret
,
...
...
@@ -19,8 +19,8 @@ let gitlabAuthStrategy = new GitlabStrategy({
},
passportGeneralCallback
)
if
(
process
.
env
[
'
https_proxy
'
])
{
le
t
httpsProxyAgent
=
new
HttpsProxyAgent
(
process
.
env
[
'
https_proxy
'
])
;
gitlabAuthStrategy
.
_oauth2
.
setAgent
(
httpsProxyAgent
)
;
cons
t
httpsProxyAgent
=
new
HttpsProxyAgent
(
process
.
env
[
'
https_proxy
'
])
gitlabAuthStrategy
.
_oauth2
.
setAgent
(
httpsProxyAgent
)
}
passport
.
use
(
gitlabAuthStrategy
)
...
...
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