Commit f42525ef authored by wty's avatar wty

重写阿波罗配置获取6

parent 9e2b2d23
...@@ -10,6 +10,13 @@ const ssoOauth2 = new SsoOauth2({ ...@@ -10,6 +10,13 @@ const ssoOauth2 = new SsoOauth2({
router.get('/ssoIndex', async (req, res) => { router.get('/ssoIndex', async (req, res) => {
const {ssoStamp, redirect} = req.query const {ssoStamp, redirect} = req.query
if (!global['SSO_APP_SECRET']) {
res.send({
message: '缺少appSecret'
})
console.info('缺少appSecret')
return;
}
console.info('ssoConfig:',{ console.info('ssoConfig:',{
...config.SSO, ...config.SSO,
appSecret: global['SSO_APP_SECRET'] appSecret: global['SSO_APP_SECRET']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment