summaryrefslogtreecommitdiff
path: root/microservices/02-api-gateway/src/main/resources
diff options
context:
space:
mode:
authorKamal Wickramanayake <kamal@inbox.lk>2026-07-06 06:32:08 +0530
committerKamal Wickramanayake <kamal@inbox.lk>2026-07-06 06:32:08 +0530
commit5ca98df7caebf56990e26aa83a1a2b626ba16660 (patch)
treee71cd8298a49c95d7a03697ef4324b342b399f3e /microservices/02-api-gateway/src/main/resources
parent504045fb23fa75a520a4d2665aea7d423db1fe14 (diff)
Microservices: Documentation improvedHEADmaster
Diffstat (limited to 'microservices/02-api-gateway/src/main/resources')
-rw-r--r--microservices/02-api-gateway/src/main/resources/application.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/microservices/02-api-gateway/src/main/resources/application.yaml b/microservices/02-api-gateway/src/main/resources/application.yaml
index f51dbfe..4e1f9e7 100644
--- a/microservices/02-api-gateway/src/main/resources/application.yaml
+++ b/microservices/02-api-gateway/src/main/resources/application.yaml
@@ -2,6 +2,8 @@ server:
port: 8050
address: 127.0.0.1
+# From where this API gatway can load roles of authenticated users?
+# Look at the README file for details.
app:
userRolesUrl: "http://localhost:8052/myservices/security/open/users/{username}/roles"
@@ -49,6 +51,7 @@ spring:
- PrefixPath=/myservices
- TokenRelay # Add oauth (or jwt) token to request header before forwarding
+ # Register this API gateway as an OAuth2 client with the OAuth2 authorization server
security:
oauth2:
client:
@@ -66,6 +69,9 @@ spring:
scope:
- openid
- profile
+
+# Instead of coding a SecurityConfig class with OAuth2 configurations, com.c4-soft.springaddons dependency
+# allows configuring some OAuth2 behaviour within this application.yaml file. This is just convenient.
com:
c4-soft:
springaddons: