Browse Source

add allowed domains and client_ids

Starink 6 years ago
parent
commit
5ae102a64d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      server/controller/auth.js

+ 2 - 2
server/controller/auth.js

@@ -3,8 +3,8 @@ const jwt = require('jsonwebtoken');
 
 class AuthController{
     static checkClient(ctx){
-        const allowed_client_ids = ['seec-portal'];
-        const allowed_redirect_domains = ['localhost:3000', 'localhost:8000'];
+        const allowed_client_ids = ['seec-portal', 'seec-seec', 'seec-mooc', 'seec-portal'];
+        const allowed_redirect_domains = ['localhost:3000', 'localhost:8000', 'seec.seecoder.cn', 'mooc.seecoder.cn', 'helper.seecoder.cn' ];
 
         const query = ctx.query;
         console.log('query', query);