Authentication Logic with OAuth 2.0 with Google and GitHub
See this video by Telusko #39 Spring Security | Google and Github Login using OAuth2
For you to be able to fork and use this project you'll need to have you own credentials from
both GitHub and Google Cloud.
You can get them here: GitHub & Google Cloud Console
For both options you'll have to create or select an existing project of yours !
- First you need to clone this to your machine
git clone https://github.com/DevDario/spring-oauth20
- Then access it
cd spring-oauth20/
- Now you can build the project:
$ ./mvnw clean package
- and then run it:
$ java -jar target/SpringOauth2-0.0.1-SNAPSHOT.jar
You can access the API here: localhost:8080.
You will be redirected to the login form provided by OAuth2.0 if not authenticated
After you log in you can access the private route: localhost:8080/private.
it says "Costs" because I'll use it on another project of mine