Skip to content

Commit cf2892a

Browse files
committed
update config
1 parent d8d42ff commit cf2892a

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

config-repo/application.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,8 @@ spring:
3232
management:
3333
security:
3434
enabled: false
35+
36+
security:
37+
oauth2:
38+
resource:
39+
user-info-uri: http://localhost:5000/uaa/current

config-repo/gateway.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@ zuul:
2626
stripPrefix: false
2727
sensitiveHeaders:
2828
svca-service:
29-
path: /svca/**
29+
path: /svca/**
30+
sensitiveHeaders:
31+
svcb-service:
32+
path: /svcb/**
33+
sensitiveHeaders:

config-repo/svca-service.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ authserver:
88
port: 5000
99
contextPath: uaa
1010

11-
spring:
11+
security:
1212
oauth2:
13-
resource:
14-
userInfoUri: http://${authserver.hostname}:${authserver.port}/${authserver.contextPath}/current
15-
preferTokenInfo: false
13+
client:
14+
clientId: account-service
15+
clientSecret: ${ACCOUNT_SERVICE_PASSWORD:password}
16+
accessTokenUri: http://localhost:5000/uaa/oauth/token
17+
grant-type: client_credentials
18+
scope: server

0 commit comments

Comments
 (0)