2020-08-18 22:27:25 +07:00
|
|
|
server:
|
|
|
|
port: 8080
|
|
|
|
|
|
|
|
logging:
|
|
|
|
level:
|
|
|
|
root: INFO
|
|
|
|
org.springframework.web: INFO
|
|
|
|
org.springframework.security: INFO
|
|
|
|
org.springframework.security.oauth2: INFO
|
|
|
|
# org.springframework.boot.autoconfigure: DEBUG
|
|
|
|
|
|
|
|
spring:
|
|
|
|
thymeleaf:
|
|
|
|
cache: false
|
|
|
|
security:
|
|
|
|
oauth2:
|
|
|
|
client:
|
|
|
|
registration:
|
2020-12-11 03:46:56 +07:00
|
|
|
messaging-client-oidc:
|
|
|
|
provider: spring
|
|
|
|
client-id: messaging-client
|
|
|
|
client-secret: secret
|
|
|
|
authorization-grant-type: authorization_code
|
|
|
|
redirect-uri: "{baseUrl}/login/oauth2/code/{registrationId}"
|
|
|
|
scope: openid
|
|
|
|
client-name: messaging-client-oidc
|
2020-08-18 22:27:25 +07:00
|
|
|
messaging-client-authorization-code:
|
|
|
|
provider: spring
|
|
|
|
client-id: messaging-client
|
|
|
|
client-secret: secret
|
|
|
|
authorization-grant-type: authorization_code
|
|
|
|
redirect-uri: "{baseUrl}/authorized"
|
|
|
|
scope: message.read,message.write
|
2020-12-11 03:46:56 +07:00
|
|
|
client-name: messaging-client-authorization-code
|
2020-08-18 22:27:25 +07:00
|
|
|
messaging-client-client-credentials:
|
|
|
|
provider: spring
|
|
|
|
client-id: messaging-client
|
|
|
|
client-secret: secret
|
|
|
|
authorization-grant-type: client_credentials
|
|
|
|
scope: message.read,message.write
|
2020-12-11 03:46:56 +07:00
|
|
|
client-name: messaging-client-client-credentials
|
2020-08-18 22:27:25 +07:00
|
|
|
provider:
|
|
|
|
spring:
|
2020-12-11 03:46:56 +07:00
|
|
|
issuer-uri: http://auth-server:9000
|
2020-08-18 22:27:25 +07:00
|
|
|
|
|
|
|
messages:
|
|
|
|
base-uri: http://localhost:8090/messages
|