* move user endpoint * formatting * formatting * formatting * formatting * change url name * Update PersonInfoController.java * Update PersonInfoController.java
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
# Make the application available at http://localhost:8080
|
|
# These are default settings, but we add them for clarity.
|
|
server:
|
|
port: 8080
|
|
contextPath: /
|
|
|
|
# Configure the Authorization Server and User Info Resource Server details
|
|
security:
|
|
oauth2:
|
|
client:
|
|
accessTokenUri: http://localhost:7070/authserver/oauth/token
|
|
userAuthorizationUri: http://localhost:7070/authserver/oauth/authorize
|
|
clientId: authserver
|
|
clientSecret: passwordforauthserver
|
|
resource:
|
|
userInfoUri: http://localhost:9000/user
|
|
|
|
person:
|
|
url: http://localhost:9000/person
|
|
|
|
# Proxies the calls to http://localhost:8080/api/* to our REST service at http://localhost:8081/*
|
|
# and automatically includes our OAuth2 token in the request headers
|
|
zuul:
|
|
routes:
|
|
resource:
|
|
path: /api/**
|
|
url: http://localhost:9000
|
|
user:
|
|
path: /user/**
|
|
url: http://localhost:9000/user
|
|
|
|
# Make sure the OAuth2 token is only relayed when using the internal API,
|
|
# do not pass any authentication to the external API
|
|
proxy:
|
|
auth:
|
|
routes:
|
|
api: oauth2 |