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
d1b2fb22
Unverified
Commit
d1b2fb22
authored
Mar 09, 2019
by
Christoph (Sheogorath) Kern
Committed by
GitHub
Mar 09, 2019
Browse files
Merge pull request #1163 from SISheogorath/fix/googleAuth
Add required change for Google+ API deprecation
parents
de0acbb5
cda878d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/web/auth/google/index.js
View file @
d1b2fb22
...
...
@@ -11,7 +11,8 @@ let googleAuth = module.exports = Router()
passport
.
use
(
new
GoogleStrategy
({
clientID
:
config
.
google
.
clientID
,
clientSecret
:
config
.
google
.
clientSecret
,
callbackURL
:
config
.
serverURL
+
'
/auth/google/callback
'
callbackURL
:
config
.
serverURL
+
'
/auth/google/callback
'
,
userProfileURL
:
"
https://www.googleapis.com/oauth2/v3/userinfo
"
},
passportGeneralCallback
))
googleAuth
.
get
(
'
/auth/google
'
,
function
(
req
,
res
,
next
)
{
...
...
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