spring-boot/spring-boot-samples/spring-boot-sample-oauth2-client
Phillip Webb c55b5d7111 Polish
2017-11-01 23:14:52 -07:00
..
src Polish 2017-11-01 23:14:52 -07:00
pom.xml Align with spring-security-jwt-jose being renamed to s-s-auth2-jose 2017-10-23 15:58:37 +01:00
README.adoc Add README for OAuth2 client sample 2017-10-05 18:30:33 -07:00

= Spring Boot Sample 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/oauth2/authorize/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.