This is a sample Spring Boot application that demonstrates how to implement OAuth Social Login with GitHub.
- Java 8 or higher
- GitHub account
- GitHub OAuth application credentials (Client ID and Client Secret)
- Clone this repository using git clone
https://github.com/telman03/social-login-oauth
- Navigate to the project directory using
cd social-login-oauth
- Open
src/main/resources/application.properties
file and replaceYOUR_CLIENT_ID
andYOUR_CLIENT_SECRET
with the actual values of your GitHub OAuth application credentials. - Run the application using
mvn spring-boot:run
- Open a web browser and navigate to
http://localhost:8080/secured
. You should be redirected to the GitHub login page. - Enter your GitHub credentials and authorize the application to access your GitHub account.
- You should be redirected back to the application with your GitHub profile information displayed on the page.