From 5ca98df7caebf56990e26aa83a1a2b626ba16660 Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Mon, 6 Jul 2026 06:32:08 +0530 Subject: Microservices: Documentation improved --- microservices/01-oauth2-server/README | 8 ++++---- .../01-oauth2-server/src/main/resources/application.yaml | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'microservices/01-oauth2-server') 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 -- cgit v1.2.3