Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
9 years ago
Commit
4eb4514fa5126fb04ccc783b790b35a6f653b3ab
1 parent
b71856c6
第三方登录设置
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
apps/passport/models/login-auth-service.js
apps/passport/models/login-auth-service.js
View file @
4eb4514
...
...
@@ -127,8 +127,8 @@ passport.use('wechat', new WeixinStrategy({
// sina 登录
passport
.
use
(
'sina'
,
new
SinaStrategy
({
clientID
:
'3739328910'
,
clientSecret
:
'9d44cded26d048e23089e5e975c93df1'
,
clientID
:
config
.
thirdLogin
.
sina
.
appID
,
clientSecret
:
config
.
thirdLogin
.
sina
.
appSecret
,
callbackURL
:
`
$
{
siteUrl
}
/passport/
login
/
sina
/
callback
`
,
requireState
:
false
},
(
accessToken
,
refreshToken
,
profile
,
done
)
=>
{
...
...
@@ -137,8 +137,8 @@ passport.use('sina', new SinaStrategy({
// qq 登录
passport
.
use
(
'qq'
,
new
QQStrategy
({
clientID
:
'100229394'
,
clientSecret
:
'c0af9c29e0900813028c2ccb42021792'
,
clientID
:
config
.
thirdLogin
.
qq
.
appID
,
clientSecret
:
config
.
thirdLogin
.
qq
.
appSecret
,
callbackURL
:
`
$
{
siteUrl
}
/passport/
login
/
qq
/
callback
`
,
requireState
:
false
},
(
accessToken
,
refreshToken
,
profile
,
done
)
=>
{
...
...
@@ -147,8 +147,8 @@ passport.use('qq', new QQStrategy({
// alipay 登录
passport
.
use
(
'alipay'
,
new
AlipayStrategy
({
partner
:
'2088701661478015'
,
key
:
'kcxawi9bb07mzh0aq2wcirsf9znusobw'
,
partner
:
config
.
thirdLogin
.
alipay
.
partnerID
,
key
:
config
.
thirdLogin
.
alipay
.
appSecret
,
return_url
:
`
$
{
siteUrl
}
/passport/
login
/
alipay
/
callback
`
},
(
profile
,
done
)
=>
{
done
(
null
,
profile
);
...
...
Please
register
or
login
to post a comment