Ver código fonte

fix: new authing ak/sk

ryanemax 7 meses atrás
pai
commit
8c6c1346a7

+ 3 - 3
README.md

@@ -72,12 +72,12 @@ https://lljydpt8egql.u2-dev.hep.com.cn/
 
 ### AKSK
 AccessKey ID:
-6686bffb373d06911e24a969
+669b25e1731d50c59f5494d1
 AccessKey Secret:
-4e978331675938d1bc81fb109e67d59a
+4cfc095a72a67e22065c97e90054315c
 
 ### 单页面应用
-AppID 6682ab96b7bd5db59d6785a0
+AppID 669b25e1731d50c59f5494d1
 
 AppSecret b800ac6533c640c3d1ea2b20ebe2e990
 

+ 1 - 1
projects/textbook/src/modules/login/login/parse-authing.ts

@@ -35,7 +35,7 @@ export class ParseAuthing{
     initLoginModal(){
         this.authingGurad = new GuardFactory.Guard({
             host: 'https://textbook.u2-dev.hep.com.cn', // 应用的认证地址
-            appId: '6682ab96b7bd5db59d6785a0',
+            appId: '669b25e1731d50c59f5494d1',
             redirectUri:location.origin
         })
         // this.authingGurad.changeView("register:username-password")

+ 1 - 1
projects/textbook/src/modules/login/register/parse-authing.ts

@@ -35,7 +35,7 @@ export class ParseAuthing{
     initLoginModal(){
         this.authingGurad = new GuardFactory.Guard({
             host: 'https://textbook.u2-dev.hep.com.cn', // 应用的认证地址
-            appId: '6682ab96b7bd5db59d6785a0',
+            appId: '669b25e1731d50c59f5494d1',
             redirectUri:location.origin
         })
         // 使用 start 方法挂载 Guard 组件到你指定的 DOM 节点,登录成功后返回 userInfo

+ 2 - 2
server/cloud/authing/func-authing-org-sync.js

@@ -1,7 +1,7 @@
 const { ManagementClient } = require('authing-node-sdk')
 const managementClient  = new ManagementClient({
-    accessKeyId: '6686bffb373d06911e24a969',
-    accessKeySecret: "4e978331675938d1bc81fb109e67d59a",
+    accessKeyId: '669b25e1731d50c59f5494d1',
+    accessKeySecret: "4cfc095a72a67e22065c97e90054315c",
     host: 'https://textbook.u2-dev.hep.com.cn', // 应用的认证地址
 })
 

+ 1 - 1
server/cloud/authing/func-authing-session-sync.js

@@ -31,7 +31,7 @@ async function syncSessionWithIdToken(token){
     // 通过用户的 id_token 初始化之后获取用户信息
 
     let authenticationClient = new AuthenticationClient({
-        appId: '6682ab96b7bd5db59d6785a0',
+        appId: '669b25e1731d50c59f5494d1',
         appHost: 'https://textbook.u2-dev.hep.com.cn', // 应用的认证地址
         token: token
     })

+ 2 - 2
server/cloud/authing/test/test-verify-sms.js

@@ -2,8 +2,8 @@ const { AuthenticationClient, Models } = require('authing-node-sdk');
 
 const authenticationClient = new AuthenticationClient({
   // 需要替换成你的 Authing AppId、 Secret 和 Host
-  appId: '6682ab96b7bd5db59d6785a0',
-  appSecret: "4e978331675938d1bc81fb109e67d59a",
+  appId: '669b25e1731d50c59f5494d1',
+  appSecret: "4cfc095a72a67e22065c97e90054315c",
   appHost: 'https://textbook.u2-dev.hep.com.cn', // 应用的认证地址
 });
 

+ 2 - 2
server/cloud/authing/trigger-department.js

@@ -1,8 +1,8 @@
 // https://docs.authing.cn/v3/reference/sdk/node/management/%E7%AE%A1%E7%90%86%E7%BB%84%E7%BB%87%E6%9C%BA%E6%9E%84/update-department.html
 const { ManagementClient,Models } = require('authing-node-sdk')
 const managementClient  = new ManagementClient({
-    accessKeyId: '6699e5bc4767805be9cd1ddc', // 用户池级别AKSK
-    accessKeySecret: "c92f71bda13ac9e2e903410148733514",
+    accessKeyId: '669b25e1731d50c59f5494d1', // 用户池级别AKSK
+    accessKeySecret: "4cfc095a72a67e22065c97e90054315c",
     host: 'https://textbook.u2-dev.hep.com.cn', // 应用的认证地址
 })
 

+ 2 - 2
server/cloud/authing/trigger-user-save.js

@@ -1,8 +1,8 @@
 // https://docs.authing.co/v2/reference/sdk-for-node/management/UsersManagementClient.html
 const { ManagementClient } = require('authing-node-sdk')
 const managementClient  = new ManagementClient({
-    accessKeyId: '6686bffb373d06911e24a969',
-    accessKeySecret: "4e978331675938d1bc81fb109e67d59a",
+    accessKeyId: '669b25e1731d50c59f5494d1',
+    accessKeySecret: "4cfc095a72a67e22065c97e90054315c",
     host: 'https://textbook.u2-dev.hep.com.cn', // 应用的认证地址
 })