Microservice using OAuth 2.0 and OpenID Connect to authenticate in the Google and get information to user.
- Maven;
- Spring Boot;
- Spring Web;
- Spring Security;
- OAuth2 authentication;
- Angular JS, HTML, CSS.
- Go to https://console.developers.google.com and login with your Google account (this will be the developer account and the email of this account will be published when someone tries to authenticate with the Google application).
- If you don't have a project create a new one and then click into the project.
- In the menu "API manager" on the left side select "Credentials" --> "Create credentials" --> "OAuth client ID".
- Application Type -> "Web Application",
- Authorized Javascript Origins -> " ",
- Authorized Redirect URI -> http://localhost:8181/google/login
- Copy the client ID and client Secret and update the
application.yml
mvn spring-boot:run
###3. Open browser and browse at http://localhost:8181/google/login