Files
spring-authorization-server/samples/boot/oauth2-integration
Joe Grandja 7b4fc46369 Polish authorization consent page
Issue gh-340
2021-07-09 07:15:01 -04:00
..
2021-07-09 06:56:56 -04:00
2021-04-26 09:51:21 -04:00
2021-04-26 09:51:21 -04:00
2021-04-05 15:58:36 -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://127.0.0.1:8080`