فهرست منبع

更新认证配置

woody 8 ماه پیش
والد
کامیت
f7748281dc

+ 11 - 12
src/main/resources/application-dev.yml

@@ -34,16 +34,17 @@ nacos:
   config:
     server-addr: 47.108.128.78:6848
 
-oauth:
-  scoped: true
-  secret: oauth.token.secret@chelvc!@#2023
-  clients:
-    - appid: chelvc_client
-      secret: chelvc@secret#2023!
-      scopes: ADMIN,CUSTOMER,MERCHANT
-      grants: sms,wechat,password,refresh_token
-      access-token-timeout: 604800
-      refresh-token-timeout: 7776000
+security:
+  authorize:
+    scoped: true
+    secret: oauth.token.secret@chelvc!@#2023
+    clients:
+      - appid: chelvc_client
+        secret: chelvc@secret#2023!
+        scopes: ADMIN,CUSTOMER,MERCHANT
+        grants: sms,wechat,password,refresh_token
+        access-token-timeout: 604800
+        refresh-token-timeout: 7776000
 
 upload:
   clients:
@@ -52,8 +53,6 @@ upload:
       channel: DEFAULT
 
 location:
-  caching:
-    enabled: true
   clients:
     - key: VPKBZ-CR3CG-R23QE-QK2IY-LNXKZ-GCB34
       channel: TENCENT

+ 11 - 12
src/main/resources/application-pre.yml

@@ -34,16 +34,17 @@ nacos:
   config:
     server-addr: 127.0.0.1:6848
 
-oauth:
-  scoped: true
-  secret: oauth.token.secret@chelvc!@#2023
-  clients:
-    - appid: chelvc_client
-      secret: chelvc@secret#2023!
-      scopes: ADMIN,CUSTOMER,MERCHANT
-      grants: sms,wechat,password,refresh_token
-      access-token-timeout: 604800
-      refresh-token-timeout: 7776000
+security:
+  authorize:
+    scoped: true
+    secret: oauth.token.secret@chelvc!@#2023
+    clients:
+      - appid: chelvc_client
+        secret: chelvc@secret#2023!
+        scopes: ADMIN,CUSTOMER,MERCHANT
+        grants: sms,wechat,password,refresh_token
+        access-token-timeout: 604800
+        refresh-token-timeout: 7776000
 
 upload:
   clients:
@@ -52,8 +53,6 @@ upload:
       channel: DEFAULT
 
 location:
-  caching:
-    enabled: true
   clients:
     - key: VPKBZ-CR3CG-R23QE-QK2IY-LNXKZ-GCB34
       channel: TENCENT

+ 11 - 12
src/main/resources/application-prod.yml

@@ -34,16 +34,17 @@ nacos:
   config:
     server-addr: 127.0.0.1:6848
 
-oauth:
-  scoped: true
-  secret: oauth.token.secret@chelvc!@#2023
-  clients:
-    - appid: chelvc_client
-      secret: chelvc@secret#2023!
-      scopes: ADMIN,CUSTOMER,MERCHANT
-      grants: sms,wechat,password,refresh_token
-      access-token-timeout: 604800
-      refresh-token-timeout: 7776000
+security:
+  authorize:
+    scoped: true
+    secret: oauth.token.secret@chelvc!@#2023
+    clients:
+      - appid: chelvc_client
+        secret: chelvc@secret#2023!
+        scopes: ADMIN,CUSTOMER,MERCHANT
+        grants: sms,wechat,password,refresh_token
+        access-token-timeout: 604800
+        refresh-token-timeout: 7776000
 
 upload:
   clients:
@@ -52,8 +53,6 @@ upload:
       channel: DEFAULT
 
 location:
-  caching:
-    enabled: true
   clients:
     - key: VPKBZ-CR3CG-R23QE-QK2IY-LNXKZ-GCB34
       channel: TENCENT

+ 11 - 12
src/main/resources/application-test.yml

@@ -34,16 +34,17 @@ nacos:
   config:
     server-addr: 127.0.0.1:6848
 
-oauth:
-  scoped: true
-  secret: oauth.token.secret@chelvc!@#2023
-  clients:
-    - appid: chelvc_client
-      secret: chelvc@secret#2023!
-      scopes: ADMIN,CUSTOMER,MERCHANT
-      grants: sms,wechat,password,refresh_token
-      access-token-timeout: 604800
-      refresh-token-timeout: 7776000
+security:
+  authorize:
+    scoped: true
+    secret: oauth.token.secret@chelvc!@#2023
+    clients:
+      - appid: chelvc_client
+        secret: chelvc@secret#2023!
+        scopes: ADMIN,CUSTOMER,MERCHANT
+        grants: sms,wechat,password,refresh_token
+        access-token-timeout: 604800
+        refresh-token-timeout: 7776000
 
 upload:
   clients:
@@ -52,8 +53,6 @@ upload:
       channel: DEFAULT
 
 location:
-  caching:
-    enabled: true
   clients:
     - key: VPKBZ-CR3CG-R23QE-QK2IY-LNXKZ-GCB34
       channel: TENCENT