summaryrefslogtreecommitdiff
path: root/microservices/01-oauth2-server
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/01-oauth2-server
parent504045fb23fa75a520a4d2665aea7d423db1fe14 (diff)
Microservices: Documentation improvedHEADmaster
Diffstat (limited to 'microservices/01-oauth2-server')
-rw-r--r--microservices/01-oauth2-server/README8
-rw-r--r--microservices/01-oauth2-server/src/main/resources/application.yaml2
2 files changed, 6 insertions, 4 deletions
diff --git a/microservices/01-oauth2-server/README b/microservices/01-oauth2-server/README
index f91aac5..88bc575 100644
--- a/microservices/01-oauth2-server/README
+++ b/microservices/01-oauth2-server/README
@@ -1,10 +1,10 @@
-This project is a simple OAuth2 server using Spring Security.
+This project implements a simple OAuth2 server that uses Spring Authorization Server customized by Spring Security.
-It has been cofigured to authenticate users as defined in the application.yaml file.
+It has been cofigured to authenticate users as defined in the application.yaml file. This is accomplished by the SecurityConfig.java file (with the help from a few other classes).
-However, this same sample project can be extened to authenticate users based on other authentication mechanisms such as LDAP, database and so on.
+However, this same sample project can be modified to authenticate users based on other authentication mechanisms such as LDAP, Microsoft Active Directory, database and so on.
To run:
./mvnw spring-boot:run
-The deb directory content can be used to make a deb file from this project that can be used to deploy this as a service.
+The linux/deb directory content can be used to make a deb file from this project that can be used to deploy this as a service.
diff --git a/microservices/01-oauth2-server/src/main/resources/application.yaml b/microservices/01-oauth2-server/src/main/resources/application.yaml
index b263a5e..cf2c490 100644
--- a/microservices/01-oauth2-server/src/main/resources/application.yaml
+++ b/microservices/01-oauth2-server/src/main/resources/application.yaml
@@ -9,6 +9,7 @@ server:
spring:
application:
name: oauth2-server
+ # Define the API gateway as an OAuth2 client.
security:
oauth2:
authorizationserver:
@@ -31,6 +32,7 @@ spring:
- "profile"
require-authorization-consent: false
+# Define test users and their passwords. You can add more if you want.
app:
users:
- username: admin