diff options
Diffstat (limited to 'microservices/01-oauth2-server')
| -rw-r--r-- | microservices/01-oauth2-server/README | 8 | ||||
| -rw-r--r-- | microservices/01-oauth2-server/src/main/resources/application.yaml | 2 |
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 |
