spring-boot/spring-boot-samples/spring-boot-sample-reactive-oauth2-client
Andy Wilkinson 064f6478df Move back to JUnit 4 until SUREFIRE-1614 has been resolved
See gh-14736
See gh-14737
See gh-14738
2018-12-12 16:49:30 +00:00
..
src Move back to JUnit 4 until SUREFIRE-1614 has been resolved 2018-12-12 16:49:30 +00:00
pom.xml Use oauth2-client starter in reactive sample 2018-10-24 19:56:36 -07:00
README.adoc

= Spring Boot Sample Reactive OAuth2 Client

== Register Github OAuth2 application
To run the sample, you need to link:https://github.com/settings/applications/new[register an OAuth application on Github].
While registering your application, ensure the Authorization callback URL is set to http://localhost:8080/login/oauth2/code/github.
After completing the registration, you will have a new OAuth Application with a Client ID and Client Secret.

== Configuring application.yml
Once the OAuth application is registered with GitHub, you need to configure the sample application to use this OAuth application (client).
Edit the link:src/main/resources/application.yml[application.yml] and replace ${APP-CLIENT-ID} and ${APP-CLIENT-SECRET} with the OAuth client credentials created in the previous section.

The sample can now be run and you can login with your Github user credentials.