Spring Boot Security OAuth2 Google and Angular JS
Microservice using OAuth 2.0 and OpenID Connect to authenticate in the Google and get information to user.
Technology stack:
- Maven;
- Spring Boot;
- Spring Web;
- Spring Security;
- OAuth2 authentication;
- Angular JS, HTML, CSS.
1. For registration your app in Google App, perform the following steps:
- 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".
- Copy the client ID and client Secret and update the
application.yml
2. To run this application use:
mvn spring-boot:run
3. Open browser and browse at
http://localhost:8181/google/login