woody преди 1 година
родител
ревизия
feb6ba0ba9

+ 7 - 0
src/main/resources/application-dev.yml

@@ -40,6 +40,13 @@ nacos:
 
 oauth:
   secret: oauth.token.secret@chelvc!@#2023
+  clients:
+    - id: chelvc_client
+      secret: chelvc@secret#2023!
+      scopes: ADMIN,CUSTOMER,MERCHANT
+      grants: sms,wechat,password,refresh_token
+      access-token-timeout: 3600
+      refresh-token-timeout: 86400
 
 upload:
   clients:

+ 7 - 0
src/main/resources/application-pre.yml

@@ -40,6 +40,13 @@ nacos:
 
 oauth:
   secret: oauth.token.secret@chelvc!@#2023
+  clients:
+    - id: chelvc_client
+      secret: chelvc@secret#2023!
+      scopes: ADMIN,CUSTOMER,MERCHANT
+      grants: sms,wechat,password,refresh_token
+      access-token-timeout: 3600
+      refresh-token-timeout: 86400
 
 upload:
   clients:

+ 7 - 0
src/main/resources/application-prod.yml

@@ -40,6 +40,13 @@ nacos:
 
 oauth:
   secret: oauth.token.secret@chelvc!@#2023
+  clients:
+    - id: chelvc_client
+      secret: chelvc@secret#2023!
+      scopes: ADMIN,CUSTOMER,MERCHANT
+      grants: sms,wechat,password,refresh_token
+      access-token-timeout: 3600
+      refresh-token-timeout: 86400
 
 upload:
   clients:

+ 7 - 0
src/main/resources/application-test.yml

@@ -40,6 +40,13 @@ nacos:
 
 oauth:
   secret: oauth.token.secret@chelvc!@#2023
+  clients:
+    - id: chelvc_client
+      secret: chelvc@secret#2023!
+      scopes: ADMIN,CUSTOMER,MERCHANT
+      grants: sms,wechat,password,refresh_token
+      access-token-timeout: 3600
+      refresh-token-timeout: 86400
 
 upload:
   clients:

+ 1 - 7
src/main/resources/application.yml

@@ -46,10 +46,4 @@ dubbo:
     group: ${spring.profiles.active}
     check: false
     timeout: 10000
-    retries: 0
-
-oauth:
-  resource:
-    login: /uc/oauth/token
-    logout: /uc/logout
-    permit: "/**/sms/**,/**/index,/**/configuration,/**/categories"
+    retries: 0