spring-authorization-server/samples/boot/oauth2-integration
2020-11-09 05:42:27 -05:00
..
authorizationserver Set spring-security.version to 5.5.0-M1 in sample 2020-11-09 05:42:27 -05:00
client Polish gh-128 2020-10-30 11:27:27 -04:00
resourceserver Revert "Lock Dependency Versions for 0.0.2 release" 2020-10-15 04:59:49 -04:00
README.adoc Remove formLogin() from client sample app 2020-09-02 14:52:41 -04:00

= OAuth 2.0 Integration Sample

This sample integrates `spring-security-oauth2-client` and `spring-security-oauth2-resource-server` with *Spring Authorization Server*.

== Run the Sample

* Run Authorization Server -> `./gradlew -b samples/boot/oauth2-integration/authorizationserver/spring-security-samples-boot-oauth2-integrated-authorizationserver.gradle bootRun`
** *IMPORTANT:* Make sure to modify your `/etc/hosts` file to avoid problems with session cookie overwrites between `client` and `authorizationserver`. Simply add the entry `127.0.0.1	auth-server`
* Run Resource Server -> `./gradlew -b samples/boot/oauth2-integration/resourceserver/spring-security-samples-boot-oauth2-integrated-resourceserver.gradle bootRun`
* Run Client -> `./gradlew -b samples/boot/oauth2-integration/client/spring-security-samples-boot-oauth2-integrated-client.gradle bootRun`
* Go to `http://localhost:8080`