/oauth2-protocol-patterns

Primary LanguageJavaApache License 2.0Apache-2.0

OAuth 2.0 Protocols and Patterns

Warning
The samples in this repo are intended for educational purposes to demonstrate certain features of Spring Security and OAuth 2.0 / OpenID Connect 1.0. DO NOT blindly copy/paste code from the samples into production applications. Please work with your information security team to determine the suitability of using the patterns shown in the samples.

Run the Sample

  • Build the sample → ./gradlew clean build

  • Run UAA Server → ./gradlew -b uaa-server/build.gradle uaa

  • Run UI App → ./gradlew -b ui-app/build.gradle bootRun

  • Run Microservice A → ./gradlew -b microservice-a/build.gradle bootRun

  • Run Microservice B → ./gradlew -b microservice-b/build.gradle bootRun

  • Run Microservice C → ./gradlew -b microservice-c/build.gradle bootRun

  • Go to http://localhost:8080 and login to UAA using user1/password

Resources